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/TapGesture")]
13 class PublicTapGestureTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("TapGesture constructor")]
32 [Property("SPEC", "Tizen.NUI.TapGesture.TapGesture C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void TapGestureConstructor()
38 tlog.Debug(tag, $"TapGestureConstructor START");
40 TapGesture a1 = new TapGesture();
45 tlog.Debug(tag, $"TapGestureConstructor END (OK)");
46 Assert.Pass("TapGestureConstructor");
51 [Description("Test NumberOfTaps property.")]
52 [Property("SPEC", "Tizen.NUI.TapGesture.NumberOfTaps A")]
53 [Property("SPEC_URL", "-")]
54 [Property("CRITERIA", "PRW")]
55 [Property("AUTHOR", "guowei.wang@samsung.com")]
56 public void TapGestureNumberOfTaps()
58 tlog.Debug(tag, $"TapGestureNumberOfTaps START");
59 TapGesture a1 = new TapGesture();
61 uint b1 = a1.NumberOfTaps;
63 tlog.Debug(tag, $"TapGestureNumberOfTaps END (OK)");
64 Assert.Pass("TapGestureNumberOfTaps");
69 [Description("Test NumberOfTouches property.")]
70 [Property("SPEC", "Tizen.NUI.TapGesture.NumberOfTouches A")]
71 [Property("SPEC_URL", "-")]
72 [Property("CRITERIA", "PRW")]
73 [Property("AUTHOR", "guowei.wang@samsung.com")]
74 public void TapGestureNumberOfTouches()
76 tlog.Debug(tag, $"TapGestureNumberOfTouches START");
77 TapGesture a1 = new TapGesture();
79 uint b1 = a1.NumberOfTouches;
81 tlog.Debug(tag, $"TapGestureNumberOfTouches END (OK)");
82 Assert.Pass("TapGestureNumberOfTouches");
87 [Description("Test ScreenPoint property.")]
88 [Property("SPEC", "Tizen.NUI.TapGesture.ScreenPoint A")]
89 [Property("SPEC_URL", "-")]
90 [Property("CRITERIA", "PRW")]
91 [Property("AUTHOR", "guowei.wang@samsung.com")]
92 public void TapGestureScreenPoint()
94 tlog.Debug(tag, $"TapGestureScreenPoint START");
95 TapGesture a1 = new TapGesture();
97 Vector2 v1 = a1.ScreenPoint;
99 tlog.Debug(tag, $"TapGestureScreenPoint END (OK)");
100 Assert.Pass("TapGestureScreenPoint");
105 [Description("Test LocalPoint property.")]
106 [Property("SPEC", "Tizen.NUI.TapGesture.LocalPoint A")]
107 [Property("SPEC_URL", "-")]
108 [Property("CRITERIA", "PRW")]
109 [Property("AUTHOR", "guowei.wang@samsung.com")]
110 public void TapGestureLocalPoint()
112 tlog.Debug(tag, $"TapGestureLocalPoint START");
113 TapGesture a1 = new TapGesture();
115 Vector2 v1 = a1.LocalPoint;
117 tlog.Debug(tag, $"TapGestureLocalPoint END (OK)");
118 Assert.Pass("TapGestureLocalPoint");
123 [Description("Test GetTapGestureFromPtr property.")]
124 [Property("SPEC", "Tizen.NUI.TapGesture.GetTapGestureFromPtr A")]
125 [Property("SPEC_URL", "-")]
126 [Property("CRITERIA", "PRW")]
127 [Property("AUTHOR", "guowei.wang@samsung.com")]
128 public void TapGestureGetTapGestureFromPtr()
130 tlog.Debug(tag, $"TapGestureGetTapGestureFromPtr START");
131 TapGesture a1 = new TapGesture();
133 TapGesture a2 = TapGesture.GetTapGestureFromPtr(a1.SwigCPtr.Handle);
137 tlog.Debug(tag, $"TapGestureGetTapGestureFromPtr END (OK)");
138 Assert.Pass("TapGestureGetTapGestureFromPtr");