1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("public/Events/RotationGestureDetector")]
13 class PublicRotationGestureDetectorTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("RotationGestureDetector constructor")]
32 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.RotationGestureDetector C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void RotationGestureDetectorConstructor()
38 tlog.Debug(tag, $"RotationGestureDetectorConstructor START");
39 RotationGestureDetector a1 = new RotationGestureDetector();
40 RotationGestureDetector a2 = new RotationGestureDetector(a1);
45 tlog.Debug(tag, $"RotationGestureDetectorConstructor END (OK)");
46 Assert.Pass("RotationGestureDetectorConstructor");
51 [Description("RotationGestureDetector GetRotationGestureDetectorFromPtr")]
52 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.GetRotationGestureDetectorFromPtr M")]
53 [Property("SPEC_URL", "-")]
54 [Property("CRITERIA", "MR")]
55 [Property("AUTHOR", "guowei.wang@samsung.com")]
56 public void RotationGestureDetectorGetRotationGestureDetectorFromPtr()
58 tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr START");
59 RotationGestureDetector a1 = new RotationGestureDetector();
61 RotationGestureDetector a2 = RotationGestureDetector.GetRotationGestureDetectorFromPtr(RotationGestureDetector.getCPtr(a1).Handle);
64 tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr END (OK)");
65 Assert.Pass("RotationGestureDetectorGetRotationGestureDetectorFromPtr");
70 [Description("RotationGestureDetector DownCast")]
71 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.DownCast M")]
72 [Property("SPEC_URL", "-")]
73 [Property("CRITERIA", "MR")]
74 [Property("AUTHOR", "guowei.wang@samsung.com")]
75 public void RotationGestureDetectorDownCast()
77 tlog.Debug(tag, $"RotationGestureDetectorDownCast START");
78 BaseHandle handle = new BaseHandle();
80 RotationGestureDetector a1 = RotationGestureDetector.DownCast(handle);
84 tlog.Debug(tag, $"RotationGestureDetectorDownCast END (OK)");
85 Assert.Pass("RotationGestureDetectorDownCast");
90 [Description("RotationGestureDetector getCPtr")]
91 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.getCPtr M")]
92 [Property("SPEC_URL", "-")]
93 [Property("CRITERIA", "MR")]
94 [Property("AUTHOR", "guowei.wang@samsung.com")]
95 public void RotationGestureDetectorgetCPtr()
97 tlog.Debug(tag, $"RotationGestureDetectorgetCPtr START");
98 RotationGestureDetector a1 = new RotationGestureDetector();
99 global::System.Runtime.InteropServices.HandleRef b1 = RotationGestureDetector.getCPtr(a1);
103 tlog.Debug(tag, $"RotationGestureDetectorgetCPtr END (OK)");
104 Assert.Pass("RotationGestureDetectorgetCPtr");
109 [Description("RotationGestureDetector Assign")]
110 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.Assign M")]
111 [Property("SPEC_URL", "-")]
112 [Property("CRITERIA", "MR")]
113 [Property("AUTHOR", "guowei.wang@samsung.com")]
114 public void RotationGestureDetectorAssign()
116 tlog.Debug(tag, $"RotationGestureDetectorAssign START");
117 RotationGestureDetector a1 = new RotationGestureDetector();
119 RotationGestureDetector b1 = a1;
124 tlog.Debug(tag, $"RotationGestureDetectorAssign END (OK)");
125 Assert.Pass("RotationGestureDetectorAssign");
130 [Description("RotationGestureDetector DetectedSignal")]
131 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.DetectedSignal M")]
132 [Property("SPEC_URL", "-")]
133 [Property("CRITERIA", "MR")]
134 [Property("AUTHOR", "guowei.wang@samsung.com")]
135 public void RotationGestureDetectorDetectedSignal()
137 tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal START");
138 RotationGestureDetector a1 = new RotationGestureDetector();
140 RotationGestureDetectedSignal b1 = a1.DetectedSignal();
144 tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal END (OK)");
145 Assert.Pass("RotationGestureDetectorDetectedSignal");
150 [Description("Test Detected property.")]
151 [Property("SPEC", "Tizen.NUI.RotationGestureDetector.Detected A")]
152 [Property("SPEC_URL", "-")]
153 [Property("CRITERIA", "PRW")]
154 [Property("AUTHOR", "guowei.wang@samsung.com")]
155 public void RotationGestureDetectorDetected()
157 tlog.Debug(tag, $"RotationGestureDetectorDetected START");
158 RotationGestureDetector a1 = new RotationGestureDetector();
160 a1.Detected += OnDetected;
161 a1.Detected -= OnDetected;
163 RotationGestureDetector.DetectedEventArgs e = new RotationGestureDetector.DetectedEventArgs();
164 object o = new object();
170 tlog.Debug(tag, $"RotationGestureDetectorDetected END (OK)");
171 Assert.Pass("RotationGestureDetectorDetected");
174 private void OnDetected(object obj, RotationGestureDetector.DetectedEventArgs e)
179 RotationGesture p1 = e.RotationGesture;
180 e.RotationGesture = p1;