1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
5 using Tizen.NUI.BaseComponents;
8 namespace Tizen.NUI.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("public/Events/RotationGesture")]
14 class PublicRotationGestureTest
16 private const string tag = "NUITEST";
21 tlog.Info(tag, "Init() is called!");
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("RotationGesture constructor")]
33 [Property("SPEC", "Tizen.NUI.RotationGesture.RotationGesture C")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "CONSTR")]
36 [Property("AUTHOR", "guowei.wang@samsung.com")]
37 public void RotationGestureConstructor()
39 tlog.Debug(tag, $"RotationGestureConstructor START");
41 Gesture.StateType state = Gesture.StateType.Finished;
42 RotationGesture a2 = new RotationGesture(state);
45 tlog.Debug(tag, $"RotationGestureConstructor END (OK)");
46 Assert.Pass("RotationGesture");
51 [Description("Test Rotation property.")]
52 [Property("SPEC", "Tizen.NUI.RotationGesture.Rotation A")]
53 [Property("SPEC_URL", "-")]
54 [Property("CRITERIA", "PRW")]
55 [Property("AUTHOR", "guowei.wang@samsung.com")]
56 public void RotationGestureRotation()
58 tlog.Debug(tag, $"RotationGestureRotation START");
59 Gesture.StateType state = Gesture.StateType.Finished;
60 RotationGesture a1 = new RotationGesture(state);
62 float f1 = a1.Rotation;
64 tlog.Debug(tag, $"RotationGestureRotation END (OK)");
65 Assert.Pass("RotationGestureRotation");
70 [Description("Test ScreenCenterPoint property.")]
71 [Property("SPEC", "Tizen.NUI.RotationGesture.ScreenCenterPoint A")]
72 [Property("SPEC_URL", "-")]
73 [Property("CRITERIA", "PRW")]
74 [Property("AUTHOR", "guowei.wang@samsung.com")]
75 public void RotationGestureScreenCenterPoint()
77 tlog.Debug(tag, $"RotationGestureScreenCenterPoint START");
78 Gesture.StateType state = Gesture.StateType.Finished;
79 RotationGesture a1 = new RotationGesture(state);
81 Vector2 v1 = a1.ScreenCenterPoint;
83 tlog.Debug(tag, $"RotationGestureScreenCenterPoint END (OK)");
84 Assert.Pass("RotationGestureScreenCenterPoint");
89 [Description("Test LocalCenterPoint property.")]
90 [Property("SPEC", "Tizen.NUI.RotationGesture.LocalCenterPoint A")]
91 [Property("SPEC_URL", "-")]
92 [Property("CRITERIA", "PRW")]
93 [Property("AUTHOR", "guowei.wang@samsung.com")]
94 public void RotationGestureLocalCenterPoint()
96 tlog.Debug(tag, $"RotationGestureLocalCenterPoint START");
97 Gesture.StateType state = Gesture.StateType.Finished;
98 RotationGesture a1 = new RotationGesture(state);
100 Vector2 v1 = a1.LocalCenterPoint;
102 tlog.Debug(tag, $"RotationGestureLocalCenterPoint END (OK)");
103 Assert.Pass("RotationGestureLocalCenterPoint");
108 [Description("RotationGesture getCPtr")]
109 [Property("SPEC", "Tizen.NUI.RotationGesture.getCPtr M")]
110 [Property("SPEC_URL", "-")]
111 [Property("CRITERIA", "MR")]
112 [Property("AUTHOR", "guowei.wang@samsung.com")]
113 public void RotationGesturegetCPtr()
115 tlog.Debug(tag, $"RotationGesturegetCPtr START");
116 Gesture.StateType state = Gesture.StateType.Finished;
117 RotationGesture a1 = new RotationGesture(state);
118 global::System.Runtime.InteropServices.HandleRef r1 = RotationGesture.getCPtr(a1);
120 tlog.Debug(tag, $"RotationGesturegetCPtr END (OK)");
121 Assert.Pass("RotationGesturegetCPtr");
126 [Description("RotationGesture GetRotationGestureFromPtr")]
127 [Property("SPEC", "Tizen.NUI.RotationGesture.GetRotationGestureFromPtr M")]
128 [Property("SPEC_URL", "-")]
129 [Property("CRITERIA", "MR")]
130 [Property("AUTHOR", "guowei.wang@samsung.com")]
131 public void RotationGestureGetRotationGestureFromPtr()
133 tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr START");
134 Gesture.StateType state = Gesture.StateType.Finished;
135 RotationGesture a2 = new RotationGesture(state);
136 RotationGesture a1 = RotationGesture.GetRotationGestureFromPtr(RotationGesture.getCPtr(a2).Handle);
139 tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr END (OK)");
140 Assert.Pass("RotationGestureGetRotationGestureFromPtr");