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/PanGestureDetector")]
13 class PublicPanGestureDetectorTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
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()
39 tlog.Debug(tag, $"PanGestureDetectorConstructor START");
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.");
45 testingTarget.Dispose();
46 tlog.Debug(tag, $"PanGestureDetectorConstructor END (OK)");
47 Assert.Pass("PanGestureDetectorConstructor");
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()
60 tlog.Debug(tag, $"PanGestureDetectorConstructorWithPanGestureDetector START");
62 using (PanGestureDetector detector = new PanGestureDetector())
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.");
68 testingTarget.Dispose();
71 tlog.Debug(tag, $"PanGestureDetectorConstructorWithPanGestureDetector END (OK)");
72 Assert.Pass("PanGestureDetectorConstructor");
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()
84 tlog.Debug(tag, $"PanGestureDetectorDirectionLeft START");
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.");
90 tlog.Debug(tag, $"PanGestureDetectorDirectionLeft END (OK)");
91 Assert.Pass("PanGestureDetectorDirectionLeft");
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()
103 tlog.Debug(tag, $"PanGestureDetectorDirectionRight START");
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.");
109 tlog.Debug(tag, $"PanGestureDetectorDirectionRight END (OK)");
110 Assert.Pass("PanGestureDetectorDirectionLeft");
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()
122 tlog.Debug(tag, $"PanGestureDetectorDirectionUp START");
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.");
128 tlog.Debug(tag, $"PanGestureDetectorDirectionUp END (OK)");
129 Assert.Pass("PanGestureDetectorDirectionUp");
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()
141 tlog.Debug(tag, $"PanGestureDetectorDirectionDown START");
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.");
147 tlog.Debug(tag, $"PanGestureDetectorDirectionDown END (OK)");
148 Assert.Pass("PanGestureDetectorDirectionDown");
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()
160 tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal START");
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.");
166 tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal END (OK)");
167 Assert.Pass("PanGestureDetectorDirectionHorizontal");
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()
179 tlog.Debug(tag, $"PanGestureDetectorDirectionVertical START");
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.");
185 tlog.Debug(tag, $"PanGestureDetectorDirectionVertical END (OK)");
186 Assert.Pass("PanGestureDetectorDirectionVertical");
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()
198 tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold START");
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.");
204 tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold END (OK)");
205 Assert.Pass("PanGestureDetectorDefaultThreshold");
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()
217 tlog.Debug(tag, $"PanGestureDetectorScreenPosition START");
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.");
223 tlog.Debug(tag, "ScreenPosition : " + testingTarget.ScreenPosition);
225 tlog.Debug(tag, $"PanGestureDetectorScreenPosition END (OK)");
226 Assert.Pass("PanGestureDetectorScreenPosition");
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()
238 tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement START");
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.");
244 tlog.Debug(tag, "ScreenDisplacement : " + testingTarget.ScreenDisplacement);
246 tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement END (OK)");
247 Assert.Pass("PanGestureDetectorScreenDisplacement");
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()
259 tlog.Debug(tag, $"PanGestureDetectorScreenVelocity START");
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.");
265 tlog.Debug(tag, "ScreenVelocity : " + testingTarget.ScreenVelocity);
267 tlog.Debug(tag, $"PanGestureDetectorScreenVelocity END (OK)");
268 Assert.Pass("PanGestureDetectorScreenVelocity");
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()
280 tlog.Debug(tag, $"PanGestureDetectorLocalPosition START");
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.");
286 tlog.Debug(tag, "LocalPosition : " + testingTarget.LocalPosition);
288 tlog.Debug(tag, $"PanGestureDetectorLocalPosition END (OK)");
289 Assert.Pass("PanGestureDetectorLocalPosition");
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()
301 tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement START");
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.");
307 tlog.Debug(tag, "LocalDisplacement : " + testingTarget.LocalDisplacement);
309 tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement END (OK)");
310 Assert.Pass("PanGestureDetectorLocalDisplacement");
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()
322 tlog.Debug(tag, $"PanGestureDetectorLocalVelocity START");
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.");
328 tlog.Debug(tag, "LocalVelocity : " + testingTarget.LocalVelocity);
330 tlog.Debug(tag, $"PanGestureDetectorLocalVelocity END (OK)");
331 Assert.Pass("PanGestureDetectorLocalVelocity");
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()
343 tlog.Debug(tag, $"PanGestureDetectorPanning START");
344 PanGestureDetector a1 = new PanGestureDetector();
345 bool b1 = a1.Panning;
347 tlog.Debug(tag, $"PanGestureDetectorPanning END (OK)");
348 Assert.Pass("PanGestureDetectorPanning");
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()
360 tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired START");
361 PanGestureDetector a1 = new PanGestureDetector();
363 a1.SetMinimumTouchesRequired(2);
365 tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired END (OK)");
366 Assert.Pass("PanGestureDetectorSetMinimumTouchesRequired");
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()
378 tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired START");
379 PanGestureDetector a1 = new PanGestureDetector();
380 a1.SetMaximumTouchesRequired(4);
382 tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired END (OK)");
383 Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
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()
395 tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired START");
396 PanGestureDetector a1 = new PanGestureDetector();
397 a1.SetMinimumTouchesRequired(4);
399 a1.GetMinimumTouchesRequired();
401 tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired END (OK)");
402 Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
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()
414 tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired START");
415 PanGestureDetector a1 = new PanGestureDetector();
416 a1.SetMaximumTouchesRequired(4);
418 a1.GetMaximumTouchesRequired();
420 tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired END (OK)");
421 Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
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()
433 tlog.Debug(tag, $"PanGestureDetectorAddAngle START");
434 PanGestureDetector a1 = new PanGestureDetector();
435 Radian angle = new Radian(4);
436 Radian threshold = new Radian(15);
438 a1.AddAngle(angle, threshold);
439 tlog.Debug(tag, $"PanGestureDetectorAddAngle END (OK)");
440 Assert.Pass("PanGestureDetectorAddAngle");
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()
452 tlog.Debug(tag, $"PanGestureDetectorAddDirection START");
453 PanGestureDetector a1 = new PanGestureDetector();
455 Radian angle = new Radian(4);
456 Radian threshold = new Radian(15);
457 a1.AddDirection(angle);
459 a1.AddDirection(angle, threshold);
462 tlog.Debug(tag, $"PanGestureDetectorAddDirection END (OK)");
463 Assert.Pass("PanGestureDetectorAddDirection");
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()
475 tlog.Debug(tag, $"PanGestureDetectorGetAngleCount START");
476 PanGestureDetector a1 = new PanGestureDetector();
478 Radian angle = new Radian(4);
483 tlog.Debug(tag, $"PanGestureDetectorGetAngleCount END (OK)");
484 Assert.Pass("PanGestureDetectorAddDirection");
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()
496 tlog.Debug(tag, $"PanGestureDetectorClearAngles START");
497 PanGestureDetector a1 = new PanGestureDetector();
499 Radian angle = new Radian(4);
504 tlog.Debug(tag, $"PanGestureDetectorClearAngles END (OK)");
505 Assert.Pass("PanGestureDetectorClearAngles");
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()
517 tlog.Debug(tag, $"PanGestureDetectorRemoveAngle START");
518 PanGestureDetector a1 = new PanGestureDetector();
520 Radian angle = new Radian(4);
523 a1.RemoveAngle(angle);
525 tlog.Debug(tag, $"PanGestureDetectorRemoveAngle END (OK)");
526 Assert.Pass("PanGestureDetectorClearAngles");
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()
539 tlog.Debug(tag, $"PanGestureDetectorRemoveDirection START");
540 PanGestureDetector a1 = new PanGestureDetector();
542 Radian angle = new Radian(4);
543 a1.AddDirection(angle);
545 a1.RemoveDirection(angle);
547 tlog.Debug(tag, $"PanGestureDetectorRemoveDirection END (OK)");
548 Assert.Pass("PanGestureDetectorClearAngles");
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()
560 tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties START");
561 PanGesture pan = new PanGesture();
563 PanGestureDetector.SetPanGestureProperties(pan);
565 tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties END (OK)");
566 Assert.Pass("PanGestureDetectorClearAngles");
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()
578 tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr START");
579 PanGestureDetector a1 = new PanGestureDetector();
581 PanGestureDetector.GetPanGestureDetectorFromPtr(PanGestureDetector.getCPtr(a1).Handle);
584 tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr END (OK)");
585 Assert.Pass("PanGestureDetectorGetPanGestureDetectorFromPtr");
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()
597 tlog.Debug(tag, $"PanGestureDetectorDetected START");
598 PanGestureDetector a1 = new PanGestureDetector();
600 a1.Detected += OnDetected;
601 a1.Detected -= OnDetected;
604 tlog.Debug(tag, $"PanGestureDetectorDetected END (OK)");
605 Assert.Pass("PanGestureDetectorDetected");
608 private void OnDetected(object obj, PanGestureDetector.DetectedEventArgs e)