[NUI] Update NUI.Devel to fix block and crash issues.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Events / TSPanGestureDetector.cs
1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
3 using System;
4 using Tizen.NUI;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10         
11     [TestFixture]
12     [Description("public/Events/PanGestureDetector")]
13     class PublicPanGestureDetectorTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("Create a PanGestureDetector object. Check whether PanGestureDetector is successfully created or not.")]
32         [Property("SPEC", "Tizen.NUI.PanGestureDetector.PanGestureDetector C")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "CONSTR")]
35         [Property("COVPARAM", "")]
36         [Property("AUTHOR", "guowei.wang@samsung.com")]
37         public void PanGestureDetectorConstructor()
38         {
39             tlog.Debug(tag, $"PanGestureDetectorConstructor START");
40
41             var testingTarget = new PanGestureDetector();
42             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
43             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
44
45             testingTarget.Dispose();
46             tlog.Debug(tag, $"PanGestureDetectorConstructor END (OK)");
47             Assert.Pass("PanGestureDetectorConstructor");
48         }
49
50         [Test]
51         [Category("P1")]
52         [Description("Create a PanGestureDetector object. Check whether PanGestureDetector is successfully created or not.")]
53         [Property("SPEC", "Tizen.NUI.PanGestureDetector.PanGestureDetector C")]
54         [Property("SPEC_URL", "-")]
55         [Property("CRITERIA", "CONSTR")]
56         [Property("COVPARAM", "")]
57         [Property("AUTHOR", "guowei.wang@samsung.com")]
58         public void PanGestureDetectorConstructorWithPanGestureDetector()
59         {
60             tlog.Debug(tag, $"PanGestureDetectorConstructorWithPanGestureDetector START");
61
62             using (PanGestureDetector detector = new PanGestureDetector())
63             {
64                 var testingTarget = new PanGestureDetector(detector);
65                 Assert.IsNotNull(testingTarget, "Can't create success object Hover");
66                 Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
67
68                 testingTarget.Dispose();
69             }
70
71             tlog.Debug(tag, $"PanGestureDetectorConstructorWithPanGestureDetector END (OK)");
72             Assert.Pass("PanGestureDetectorConstructor");
73         }
74
75         [Test]
76         [Category("P1")]
77         [Description("Test DirectionLeft property.")]
78         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionLeft A")]
79         [Property("SPEC_URL", "-")]
80         [Property("CRITERIA", "PRW")]
81         [Property("AUTHOR", "guowei.wang@samsung.com")]
82         public void PanGestureDetectorDirectionLeft()
83         {
84             tlog.Debug(tag, $"PanGestureDetectorDirectionLeft START");
85             
86             var testingTarget = PanGestureDetector.DirectionLeft;
87             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
88             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
89
90             tlog.Debug(tag, $"PanGestureDetectorDirectionLeft END (OK)");
91             Assert.Pass("PanGestureDetectorDirectionLeft");
92         }
93
94         [Test]
95         [Category("P1")]
96         [Description("Test DirectionRight property.")]
97         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionRight A")]
98         [Property("SPEC_URL", "-")]
99         [Property("CRITERIA", "PRW")]
100         [Property("AUTHOR", "guowei.wang@samsung.com")]
101         public void PanGestureDetectorDirectionRight()
102         {
103             tlog.Debug(tag, $"PanGestureDetectorDirectionRight START");
104
105             var testingTarget = PanGestureDetector.DirectionRight;
106             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
107             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
108
109             tlog.Debug(tag, $"PanGestureDetectorDirectionRight END (OK)");
110             Assert.Pass("PanGestureDetectorDirectionLeft");
111         }
112
113         [Test]
114         [Category("P1")]
115         [Description("Test DirectionUp property.")]
116         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionUp A")]
117         [Property("SPEC_URL", "-")]
118         [Property("CRITERIA", "PRW")]
119         [Property("AUTHOR", "guowei.wang@samsung.com")]
120         public void PanGestureDetectorDirectionUp()
121         {
122             tlog.Debug(tag, $"PanGestureDetectorDirectionUp START");
123
124             var testingTarget = PanGestureDetector.DirectionUp;
125             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
126             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
127
128             tlog.Debug(tag, $"PanGestureDetectorDirectionUp END (OK)");
129             Assert.Pass("PanGestureDetectorDirectionUp");
130         }
131
132         [Test]
133         [Category("P1")]
134         [Description("Test DirectionDown property.")]
135         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionDown A")]
136         [Property("SPEC_URL", "-")]
137         [Property("CRITERIA", "PRW")]
138         [Property("AUTHOR", "guowei.wang@samsung.com")]
139         public void PanGestureDetectorDirectionDown()
140         {
141             tlog.Debug(tag, $"PanGestureDetectorDirectionDown START");
142
143             var testingTarget = PanGestureDetector.DirectionDown;
144             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
145             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
146
147             tlog.Debug(tag, $"PanGestureDetectorDirectionDown END (OK)");
148             Assert.Pass("PanGestureDetectorDirectionDown");
149         }
150
151         [Test]
152         [Category("P1")]
153         [Description("Test DirectionHorizontal property.")]
154         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionHorizontal A")]
155         [Property("SPEC_URL", "-")]
156         [Property("CRITERIA", "PRW")]
157         [Property("AUTHOR", "guowei.wang@samsung.com")]
158         public void PanGestureDetectorDirectionHorizontal()
159         {
160             tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal START");
161
162             var testingTarget = PanGestureDetector.DirectionHorizontal;
163             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
164             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
165
166             tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal END (OK)");
167             Assert.Pass("PanGestureDetectorDirectionHorizontal");
168         }
169
170         [Test]
171         [Category("P1")]
172         [Description("Test DirectionVertical property.")]
173         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionVertical A")]
174         [Property("SPEC_URL", "-")]
175         [Property("CRITERIA", "PRW")]
176         [Property("AUTHOR", "guowei.wang@samsung.com")]
177         public void PanGestureDetectorDirectionVertical()
178         {
179             tlog.Debug(tag, $"PanGestureDetectorDirectionVertical START");
180
181             var testingTarget = PanGestureDetector.DirectionVertical;
182             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
183             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
184
185             tlog.Debug(tag, $"PanGestureDetectorDirectionVertical END (OK)");
186             Assert.Pass("PanGestureDetectorDirectionVertical");
187         }
188
189         [Test]
190         [Category("P1")]
191         [Description("Test DefaultThreshold property.")]
192         [Property("SPEC", "Tizen.NUI.PanGestureDetector.DefaultThreshold A")]
193         [Property("SPEC_URL", "-")]
194         [Property("CRITERIA", "PRW")]
195         [Property("AUTHOR", "guowei.wang@samsung.com")]
196         public void PanGestureDetectorDefaultThreshold()
197         {
198             tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold START");
199
200             var testingTarget = PanGestureDetector.DefaultThreshold;
201             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
202             Assert.IsInstanceOf<Radian>(testingTarget, "Should be an instance of Radian type.");
203
204             tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold END (OK)");
205             Assert.Pass("PanGestureDetectorDefaultThreshold");
206         }
207
208         [Test]
209         [Category("P1")]
210         [Description("Test ScreenPosition property.")]
211         [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenPosition A")]
212         [Property("SPEC_URL", "-")]
213         [Property("CRITERIA", "PRW")]
214         [Property("AUTHOR", "guowei.wang@samsung.com")]
215         public void PanGestureDetectorScreenPosition()
216         {
217             tlog.Debug(tag, $"PanGestureDetectorScreenPosition START");
218
219             var testingTarget = new PanGestureDetector();
220             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
221             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
222
223             tlog.Debug(tag, "ScreenPosition : " + testingTarget.ScreenPosition);
224
225             tlog.Debug(tag, $"PanGestureDetectorScreenPosition END (OK)");
226             Assert.Pass("PanGestureDetectorScreenPosition");
227         }
228
229         [Test]
230         [Category("P1")]
231         [Description("Test ScreenDisplacement property.")]
232         [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenDisplacement A")]
233         [Property("SPEC_URL", "-")]
234         [Property("CRITERIA", "PRW")]
235         [Property("AUTHOR", "guowei.wang@samsung.com")]
236         public void PanGestureDetectorScreenDisplacement()
237         {
238             tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement START");
239
240             var testingTarget = new PanGestureDetector();
241             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
242             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
243
244             tlog.Debug(tag, "ScreenDisplacement : " + testingTarget.ScreenDisplacement);
245             
246             tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement END (OK)");
247             Assert.Pass("PanGestureDetectorScreenDisplacement");
248         }
249
250         [Test]
251         [Category("P1")]
252         [Description("Test ScreenVelocity property.")]
253         [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenVelocity A")]
254         [Property("SPEC_URL", "-")]
255         [Property("CRITERIA", "PRW")]
256         [Property("AUTHOR", "guowei.wang@samsung.com")]
257         public void PanGestureDetectorScreenVelocity()
258         {
259             tlog.Debug(tag, $"PanGestureDetectorScreenVelocity START");
260
261             var testingTarget = new PanGestureDetector();
262             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
263             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
264
265             tlog.Debug(tag, "ScreenVelocity : " + testingTarget.ScreenVelocity);
266
267             tlog.Debug(tag, $"PanGestureDetectorScreenVelocity END (OK)");
268             Assert.Pass("PanGestureDetectorScreenVelocity");
269         }
270
271         [Test]
272         [Category("P1")]
273         [Description("Test LocalPosition property.")]
274         [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalPosition A")]
275         [Property("SPEC_URL", "-")]
276         [Property("CRITERIA", "PRW")]
277         [Property("AUTHOR", "guowei.wang@samsung.com")]
278         public void PanGestureDetectorLocalPosition()
279         {
280             tlog.Debug(tag, $"PanGestureDetectorLocalPosition START");
281
282             var testingTarget = new PanGestureDetector();
283             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
284             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
285
286             tlog.Debug(tag, "LocalPosition : " + testingTarget.LocalPosition);
287
288             tlog.Debug(tag, $"PanGestureDetectorLocalPosition END (OK)");
289             Assert.Pass("PanGestureDetectorLocalPosition");
290         }
291
292         [Test]
293         [Category("P1")]
294         [Description("Test LocalDisplacement property.")]
295         [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalDisplacement A")]
296         [Property("SPEC_URL", "-")]
297         [Property("CRITERIA", "PRW")]
298         [Property("AUTHOR", "guowei.wang@samsung.com")]
299         public void PanGestureDetectorLocalDisplacement()
300         {
301             tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement START");
302
303             var testingTarget = new PanGestureDetector();
304             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
305             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
306
307             tlog.Debug(tag, "LocalDisplacement : " + testingTarget.LocalDisplacement);
308
309             tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement END (OK)");
310             Assert.Pass("PanGestureDetectorLocalDisplacement");
311         }
312
313         [Test]
314         [Category("P1")]
315         [Description("Test LocalVelocity property.")]
316         [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalVelocity A")]
317         [Property("SPEC_URL", "-")]
318         [Property("CRITERIA", "PRW")]
319         [Property("AUTHOR", "guowei.wang@samsung.com")]
320         public void PanGestureDetectorLocalVelocity()
321         {
322             tlog.Debug(tag, $"PanGestureDetectorLocalVelocity START");
323
324             var testingTarget = new PanGestureDetector();
325             Assert.IsNotNull(testingTarget, "Can't create success object Hover");
326             Assert.IsInstanceOf<PanGestureDetector>(testingTarget, "Should be an instance of PanGestureDetector type.");
327
328             tlog.Debug(tag, "LocalVelocity : " + testingTarget.LocalVelocity);
329
330             tlog.Debug(tag, $"PanGestureDetectorLocalVelocity END (OK)");
331             Assert.Pass("PanGestureDetectorLocalVelocity");
332         }
333
334         [Test]
335         [Category("P1")]
336         [Description("Test Panning property.")]
337         [Property("SPEC", "Tizen.NUI.PanGestureDetector.Panning A")]
338         [Property("SPEC_URL", "-")]
339         [Property("CRITERIA", "PRW")]
340         [Property("AUTHOR", "guowei.wang@samsung.com")]
341         public void PanGestureDetectorPanning()
342         {
343             tlog.Debug(tag, $"PanGestureDetectorPanning START");
344             PanGestureDetector a1 = new PanGestureDetector();
345             bool b1 = a1.Panning;
346             
347             tlog.Debug(tag, $"PanGestureDetectorPanning END (OK)");
348             Assert.Pass("PanGestureDetectorPanning");
349         }
350
351         [Test]
352         [Category("P1")]
353         [Description("Test SetMinimumTouchesRequired property.")]
354         [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetMinimumTouchesRequired M")]
355         [Property("SPEC_URL", "-")]
356         [Property("CRITERIA", "MR")]
357         [Property("AUTHOR", "guowei.wang@samsung.com")]
358         public void PanGestureDetectorSetMinimumTouchesRequired()
359         {
360             tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired START");
361             PanGestureDetector a1 = new PanGestureDetector();
362
363             a1.SetMinimumTouchesRequired(2);
364             
365             tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired END (OK)");
366             Assert.Pass("PanGestureDetectorSetMinimumTouchesRequired");
367         }
368
369         [Test]
370         [Category("P1")]
371         [Description("Test SetMaximumTouchesRequired property.")]
372         [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetMaximumTouchesRequired M")]
373         [Property("SPEC_URL", "-")]
374         [Property("CRITERIA", "MR")]
375         [Property("AUTHOR", "guowei.wang@samsung.com")]
376         public void PanGestureDetectorSetMaximumTouchesRequired()
377         {
378             tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired START");
379             PanGestureDetector a1 = new PanGestureDetector();
380             a1.SetMaximumTouchesRequired(4);
381             
382             tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired END (OK)");
383             Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
384         }
385
386         [Test]
387         [Category("P1")]
388         [Description("Test GetMinimumTouchesRequired property.")]
389         [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetMinimumTouchesRequired M")]
390         [Property("SPEC_URL", "-")]
391         [Property("CRITERIA", "MR")]
392         [Property("AUTHOR", "guowei.wang@samsung.com")]
393         public void PanGestureDetectorGetMinimumTouchesRequired()
394         {
395             tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired START");
396             PanGestureDetector a1 = new PanGestureDetector();
397             a1.SetMinimumTouchesRequired(4);
398
399             a1.GetMinimumTouchesRequired();
400             
401             tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired END (OK)");
402             Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
403         }
404
405         [Test]
406         [Category("P1")]
407         [Description("Test GetMaximumTouchesRequired property.")]
408         [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetMaximumTouchesRequired M")]
409         [Property("SPEC_URL", "-")]
410         [Property("CRITERIA", "MR")]
411         [Property("AUTHOR", "guowei.wang@samsung.com")]
412         public void PanGestureDetectorGetMaximumTouchesRequired()
413         {
414             tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired START");
415             PanGestureDetector a1 = new PanGestureDetector();
416             a1.SetMaximumTouchesRequired(4);
417
418             a1.GetMaximumTouchesRequired();
419             
420             tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired END (OK)");
421             Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
422         }
423
424         [Test]
425         [Category("P1")]
426         [Description("Test AddAngle property.")]
427         [Property("SPEC", "Tizen.NUI.PanGestureDetector.AddAngle M")]
428         [Property("SPEC_URL", "-")]
429         [Property("CRITERIA", "MR")]
430         [Property("AUTHOR", "guowei.wang@samsung.com")]
431         public void PanGestureDetectorAddAngle()
432         {
433             tlog.Debug(tag, $"PanGestureDetectorAddAngle START");
434             PanGestureDetector a1 = new PanGestureDetector();
435             Radian angle = new Radian(4);
436             Radian threshold = new Radian(15);
437             a1.AddAngle(angle);
438             a1.AddAngle(angle, threshold);
439             tlog.Debug(tag, $"PanGestureDetectorAddAngle END (OK)");
440             Assert.Pass("PanGestureDetectorAddAngle");
441         }
442
443         [Test]
444         [Category("P1")]
445         [Description("Test AddDirection property.")]
446         [Property("SPEC", "Tizen.NUI.PanGestureDetector.AddDirection M")]
447         [Property("SPEC_URL", "-")]
448         [Property("CRITERIA", "MR")]
449         [Property("AUTHOR", "guowei.wang@samsung.com")]
450         public void PanGestureDetectorAddDirection()
451         {
452             tlog.Debug(tag, $"PanGestureDetectorAddDirection START");
453             PanGestureDetector a1 = new PanGestureDetector();
454
455             Radian angle = new Radian(4);
456             Radian threshold = new Radian(15);
457             a1.AddDirection(angle);
458
459             a1.AddDirection(angle, threshold);
460
461             
462             tlog.Debug(tag, $"PanGestureDetectorAddDirection END (OK)");
463             Assert.Pass("PanGestureDetectorAddDirection");
464         }
465
466         [Test]
467         [Category("P1")]
468         [Description("Test GetAngleCount property.")]
469         [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetAngleCount M")]
470         [Property("SPEC_URL", "-")]
471         [Property("CRITERIA", "MR")]
472         [Property("AUTHOR", "guowei.wang@samsung.com")]
473         public void PanGestureDetectorGetAngleCount()
474         {
475             tlog.Debug(tag, $"PanGestureDetectorGetAngleCount START");
476             PanGestureDetector a1 = new PanGestureDetector();
477
478             Radian angle = new Radian(4);
479             a1.AddAngle(angle);
480
481             a1.GetAngleCount();
482             
483             tlog.Debug(tag, $"PanGestureDetectorGetAngleCount END (OK)");
484             Assert.Pass("PanGestureDetectorAddDirection");
485         }
486
487         [Test]
488         [Category("P1")]
489         [Description("Test ClearAngles property.")]
490         [Property("SPEC", "Tizen.NUI.PanGestureDetector.ClearAngles M")]
491         [Property("SPEC_URL", "-")]
492         [Property("CRITERIA", "MR")]
493         [Property("AUTHOR", "guowei.wang@samsung.com")]
494         public void PanGestureDetectorClearAngles()
495         {
496             tlog.Debug(tag, $"PanGestureDetectorClearAngles START");
497             PanGestureDetector a1 = new PanGestureDetector();
498
499             Radian angle = new Radian(4);
500             a1.AddAngle(angle);
501
502             a1.ClearAngles();
503             
504             tlog.Debug(tag, $"PanGestureDetectorClearAngles END (OK)");
505             Assert.Pass("PanGestureDetectorClearAngles");
506         }
507
508         [Test]
509         [Category("P1")]
510         [Description("Test RemoveAngle property.")]
511         [Property("SPEC", "Tizen.NUI.PanGestureDetector.RemoveAngle M")]
512         [Property("SPEC_URL", "-")]
513         [Property("CRITERIA", "MR")]
514         [Property("AUTHOR", "guowei.wang@samsung.com")]
515         public void PanGestureDetectorRemoveAngle()
516         {
517             tlog.Debug(tag, $"PanGestureDetectorRemoveAngle START");
518             PanGestureDetector a1 = new PanGestureDetector();
519
520             Radian angle = new Radian(4);
521             a1.AddAngle(angle);
522
523             a1.RemoveAngle(angle);
524             
525             tlog.Debug(tag, $"PanGestureDetectorRemoveAngle END (OK)");
526             Assert.Pass("PanGestureDetectorClearAngles");
527         }
528
529
530         [Test]
531         [Category("P1")]
532         [Description("Test RemoveDirection property.")]
533         [Property("SPEC", "Tizen.NUI.PanGestureDetector.RemoveDirection M")]
534         [Property("SPEC_URL", "-")]
535         [Property("CRITERIA", "MR")]
536         [Property("AUTHOR", "guowei.wang@samsung.com")]
537         public void PanGestureDetectorRemoveDirection()
538         {
539             tlog.Debug(tag, $"PanGestureDetectorRemoveDirection START");
540             PanGestureDetector a1 = new PanGestureDetector();
541
542             Radian angle = new Radian(4);
543             a1.AddDirection(angle);
544
545             a1.RemoveDirection(angle);
546             
547             tlog.Debug(tag, $"PanGestureDetectorRemoveDirection END (OK)");
548             Assert.Pass("PanGestureDetectorClearAngles");
549         }
550
551         [Test]
552         [Category("P1")]
553         [Description("Test SetPanGestureProperties property.")]
554         [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetPanGestureProperties M")]
555         [Property("SPEC_URL", "-")]
556         [Property("CRITERIA", "MR")]
557         [Property("AUTHOR", "guowei.wang@samsung.com")]
558         public void PanGestureDetectorSetPanGestureProperties()
559         {
560             tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties START");
561             PanGesture pan = new PanGesture();
562
563             PanGestureDetector.SetPanGestureProperties(pan);
564             
565             tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties END (OK)");
566             Assert.Pass("PanGestureDetectorClearAngles");
567         }
568
569         [Test]
570         [Category("P1")]
571         [Description("Test GetPanGestureDetectorFromPtr property.")]
572         [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetPanGestureDetectorFromPtr M")]
573         [Property("SPEC_URL", "-")]
574         [Property("CRITERIA", "MR")]
575         [Property("AUTHOR", "guowei.wang@samsung.com")]
576         public void PanGestureDetectorGetPanGestureDetectorFromPtr()
577         {
578             tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr START");
579             PanGestureDetector a1 = new PanGestureDetector();
580                                    
581             PanGestureDetector.GetPanGestureDetectorFromPtr(PanGestureDetector.getCPtr(a1).Handle);
582             a1.Dispose();
583                                         
584             tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr END (OK)");
585             Assert.Pass("PanGestureDetectorGetPanGestureDetectorFromPtr");
586         }
587                 
588                 [Test]
589         [Category("P1")]
590         [Description("Test Detected property.")]
591         [Property("SPEC", "Tizen.NUI.PanGestureDetector.Detected A")]
592         [Property("SPEC_URL", "-")]
593         [Property("CRITERIA", "PRW")]
594         [Property("AUTHOR", "guowei.wang@samsung.com")]
595         public void PanGestureDetectorDetected()
596         {
597             tlog.Debug(tag, $"PanGestureDetectorDetected START");
598             PanGestureDetector a1 = new PanGestureDetector();
599                         
600             a1.Detected += OnDetected;
601             a1.Detected -= OnDetected;
602
603             a1.Dispose();
604             tlog.Debug(tag, $"PanGestureDetectorDetected END (OK)");
605             Assert.Pass("PanGestureDetectorDetected");
606         }               
607                 
608                 private void OnDetected(object obj, PanGestureDetector.DetectedEventArgs e)
609                 { }
610     }
611
612 }