1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
5 using Tizen.NUI.BaseComponents;
6 using Tizen.NUI.Events;
8 namespace Tizen.NUI.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("public/Events/GestureDetectorManager")]
14 class PublicGestureDetectorManagerTest
16 private const string tag = "NUITEST";
21 tlog.Info(tag, "Init() is called!");
27 tlog.Info(tag, "Destroy() is called!");
32 [Description("GestureDetectorManager constructor")]
33 [Property("SPEC", "Tizen.NUI.GestureDetectorManager.GestureDetectorManager C")]
34 [Property("SPEC_URL", "-")]
35 [Property("CRITERIA", "CONSTR")]
36 [Property("AUTHOR", "guowei.wang@samsung.com")]
37 public void GestureDetectorManagerConstructor()
39 tlog.Debug(tag, $"GestureDetectorManagerConstructor START");
41 using (View view = new View())
43 var testingTarget = new GestureDetectorManager(view, new GestureDetectorManager.GestureListener());
44 Assert.IsNotNull(testingTarget, "should be not null");
45 Assert.IsInstanceOf<GestureDetectorManager>(testingTarget, "should be an instance of testing target class!");
47 testingTarget.Dispose();
50 tlog.Debug(tag, $"GestureDetectorManagerConstructor END (OK)");
51 Assert.Pass("GestureDetectorManagerConstructor");
56 [Description("GestureDetectorManager constructor")]
57 [Property("SPEC", "Tizen.NUI.GestureDetectorManager.GestureDetectorManager C")]
58 [Property("SPEC_URL", "-")]
59 [Property("CRITERIA", "CONSTR")]
60 [Property("AUTHOR", "guowei.wang@samsung.com")]
61 public void GestureDetectorManagerConstructorWithNullView()
63 tlog.Debug(tag, $"GestureDetectorManagerConstructorWithNullView START");
67 var testingTarget = new GestureDetectorManager(null, new GestureDetectorManager.GestureListener());
69 catch (ArgumentNullException e)
71 tlog.Debug(tag, e.Message.ToString());
72 tlog.Debug(tag, $"GestureDetectorManagerConstructorWithNullView END (OK)");
73 Assert.Pass("Caught ArgumentNullException : Passed!");
79 [Description("GestureDetectorManager constructor")]
80 [Property("SPEC", "Tizen.NUI.GestureDetectorManager.GestureDetectorManager C")]
81 [Property("SPEC_URL", "-")]
82 [Property("CRITERIA", "CONSTR")]
83 [Property("AUTHOR", "guowei.wang@samsung.com")]
84 public void GestureDetectorManagerConstructorWithNullListener()
86 tlog.Debug(tag, $"GestureDetectorManagerConstructorWithNullListener START");
90 using (View view = new View())
92 var testingTarget = new GestureDetectorManager(view, null);
96 catch (ArgumentNullException e)
98 tlog.Debug(tag, e.Message.ToString());
99 tlog.Debug(tag, $"GestureDetectorManagerConstructorWithNullListener END (OK)");
100 Assert.Pass("Caught ArgumentNullException : Passed!");