--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/Gesture")]
+ class PublicGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Gesture constructor")]
+ [Property("SPEC", "Tizen.NUI.Gesture.Gesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureConstructor()
+ {
+ tlog.Debug(tag, $"GestureConstructor START");
+
+ var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled);
+ var gesture = new Gesture(longPressGesture);
+
+ longPressGesture.Dispose();
+ gesture.Dispose();
+ tlog.Debug(tag, $"GestureConstructor END (OK)");
+ Assert.Pass("GestureConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Gesture type")]
+ [Property("SPEC", "Tizen.NUI.Gesture.type A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureType()
+ {
+ tlog.Debug(tag, $"GestureType START");
+ try
+ {
+ var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled);
+ Assert.IsNotNull(longPressGesture, "Can't create success object LongPressGesture");
+ var gesture = new Gesture(longPressGesture);
+ Assert.IsNotNull(gesture, "Can't create success object Gesture");
+ Assert.IsInstanceOf<Gesture>(gesture, "Should be an instance of Gesture type.");
+ Gesture.GestureType type = gesture.Type;
+ Assert.AreEqual(Gesture.GestureType.LongPress, type, "Should be same value");
+
+ gesture.Dispose();
+ longPressGesture.Dispose();
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ tlog.Debug(tag, $"GestureType END (OK)");
+ Assert.Pass("GestureType");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Gesture state")]
+ [Property("SPEC", "Tizen.NUI.Gesture.state A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureState()
+ {
+ tlog.Debug(tag, $"GestureState START");
+ try
+ {
+ var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled);
+ Assert.IsNotNull(longPressGesture, "Can't create success object LongPressGesture");
+ var gesture = new Gesture(longPressGesture);
+ Assert.IsNotNull(gesture, "Can't create success object Gesture");
+ Assert.IsInstanceOf<Gesture>(gesture, "Should be an instance of Gesture type.");
+ Gesture.StateType state = gesture.State;
+ Assert.AreEqual(Gesture.StateType.Cancelled, state, "Should be same value");
+
+ gesture.Dispose();
+ longPressGesture.Dispose();
+
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ tlog.Debug(tag, $"GestureState END (OK)");
+ Assert.Pass("GestureState");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Gesture time")]
+ [Property("SPEC", "Tizen.NUI.Gesture.time A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureTime()
+ {
+ tlog.Debug(tag, $"GestureTime START");
+ try
+ {
+ var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled);
+ Assert.IsNotNull(longPressGesture, "Can't create success object LongPressGesture");
+ var gesture = new Gesture(longPressGesture);
+ Assert.IsNotNull(gesture, "Can't create success object Gesture");
+ Assert.IsInstanceOf<Gesture>(gesture, "Should be an instance of Gesture type.");
+ uint time = gesture.Time;
+ Assert.GreaterOrEqual(time, 0, "Should be greater or equal 0");
+
+ gesture.Dispose();
+ longPressGesture.Dispose();
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
+
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ tlog.Debug(tag, $"GestureTime END (OK)");
+ Assert.Pass("GestureTime");
+ }
+
+
+ [Test]
+ [Category("P1")]
+ [Description("Gesture GetGestureFromPtr")]
+ [Property("SPEC", "Tizen.NUI.Gesture.GetGestureFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GetstureGetGestureFromPtr()
+ {
+ tlog.Debug(tag, $"GetstureGetGestureFromPtr START");
+
+ var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled);
+ var gesture = new Gesture(longPressGesture);
+
+ Gesture ret = Gesture.GetGestureFromPtr(Gesture.getCPtr(gesture).Handle);
+
+ Assert.IsNotNull(ret, "Can't create success object Gesture");
+ Assert.IsInstanceOf<Gesture>(ret, "Should be an instance of Gesture type.");
+
+ ret.Dispose();
+ gesture.Dispose();
+ longPressGesture.Dispose();
+
+ tlog.Debug(tag, $"GetstureGetGestureFromPtr END (OK)");
+ Assert.Pass("GetstureGetGestureFromPtr");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/GestureDetector")]
+ class PublicGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector constructor")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.GestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"GestureDetectorConstructor START");
+
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ GestureDetector newOne = new GestureDetector(ret);
+ Assert.IsNotNull(newOne, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(newOne, "should be an instance of testing target class!");
+
+
+ GestureDetector newTwo = new GestureDetector(GestureDetector.getCPtr(ret).Handle, true);
+ Assert.IsNotNull(newTwo, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(newTwo, "should be an instance of testing target class!");
+
+ ret.Dispose();
+ newOne.Dispose();
+ newTwo.Dispose();
+ tlog.Debug(tag, $"GestureDetectorConstructor END (OK)");
+ Assert.Pass("GestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector Attach")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.Attach M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorAttach()
+ {
+ tlog.Debug(tag, $"GestureDetectorAttach START");
+
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ View view = new View();
+ ret.Attach(view);
+
+ ret.Detach(view);
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorAttach END (OK)");
+ Assert.Pass("GestureDetectorAttach");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector Detach")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.Detach M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorDetach()
+ {
+ tlog.Debug(tag, $"GestureDetectorDetach START");
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ View view = new View();
+ ret.Attach(view);
+
+ ret.Detach(view);
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorDetach END (OK)");
+ Assert.Pass("GestureDetectorDetach");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector DetachAll")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.DetachAll M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorDetachAll()
+ {
+ tlog.Debug(tag, $"GestureDetectorDetachAll START");
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ View view = new View();
+ ret.Attach(view);
+
+ ret.DetachAll();
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorDetachAll END (OK)");
+ Assert.Pass("GestureDetectorDetachAll");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector GetAttachedViewCount")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.GetAttachedViewCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorGetAttachedViewCount()
+ {
+ tlog.Debug(tag, $"GestureDetectorGetAttachedViewCount START");
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ View view = new View();
+ ret.Attach(view);
+
+ ret.GetAttachedViewCount();
+
+ ret.Detach(view);
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorGetAttachedViewCount END (OK)");
+ Assert.Pass("GestureDetectorGetAttachedViewCount");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector GetAttachedView")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.GetAttachedView M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorGetAttachedView()
+ {
+ tlog.Debug(tag, $"GestureDetectorGetAttachedView START");
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ View view = new View();
+ ret.Attach(view);
+
+ ret.GetAttachedView(0);
+
+ ret.Detach(view);
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorGetAttachedView END (OK)");
+ Assert.Pass("GestureDetectorGetAttachedView");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector Assign")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorAssign()
+ {
+ tlog.Debug(tag, $"GestureDetectorAssign START");
+ GestureDetector ret = new GestureDetector();
+ GestureDetector newOne = new GestureDetector();
+
+ newOne = ret;
+
+ ret.Dispose();
+ newOne.Dispose();
+
+
+ tlog.Debug(tag, $"GestureDetectorAssign END (OK)");
+ Assert.Pass("GestureDetectorAssign");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector DownCast")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorDownCast()
+ {
+ tlog.Debug(tag, $"GestureDetectorDownCast START");
+ BaseHandle handle = new BaseHandle();
+ GestureDetector ret = GestureDetector.DownCast(handle);
+
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+ tlog.Debug(tag, $"GestureDetectorDownCast END (OK)");
+ Assert.Pass("GestureDetectorDownCast");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetector getCPtr")]
+ [Property("SPEC", "Tizen.NUI.GestureDetector.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorgetCPtr()
+ {
+ tlog.Debug(tag, $"GestureDetectorgetCPtr START");
+ GestureDetector ret = new GestureDetector();
+ Assert.IsNotNull(ret, "should be not null");
+ Assert.IsInstanceOf<GestureDetector>(ret, "should be an instance of testing target class!");
+
+ global::System.Runtime.InteropServices.HandleRef ptr = GestureDetector.getCPtr(ret);
+
+ GestureDetector newOne = null;
+ ptr = GestureDetector.getCPtr(newOne);
+
+ ret.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorgetCPtr END (OK)");
+ Assert.Pass("GestureDetectorgetCPtr");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/GestureDetectorManager")]
+ class PublicGestureDetectorManagerTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetectorManager constructor")]
+ [Property("SPEC", "Tizen.NUI.GestureDetectorManager.GestureDetectorManager C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestureDetectorManagerConstructor()
+ {
+ tlog.Debug(tag, $"GestureDetectorManagerConstructor START");
+ View view = new View();
+ view.Dispose();
+
+ tlog.Debug(tag, $"GestureDetectorManagerConstructor END (OK)");
+ Assert.Pass("GestureDetectorManagerConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GestureDetectorManager FeedTouchEvent")]
+ [Property("SPEC", "Tizen.NUI.GestureDetectorManager.FeedTouchEvent M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GestrueFeedTouchEvent()
+ {
+ tlog.Debug(tag, $"GestrueFeedTouchEvent START");
+ tlog.Debug(tag, $"GestrueFeedTouchEvent END (OK)");
+ Assert.Pass("GestrueFeedTouchEvent");
+ }
+ }
+
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/Hover")]
+ internal class PublicHoverTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Hover object. Check whether Hover is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.Hover.Hover C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverConstructor()
+ {
+ tlog.Debug(tag, $"HoverConstructor START");
+ var hover1 = new Hover();
+ Assert.IsNotNull(hover1, "Can't create success object Hover");
+ Assert.IsInstanceOf<Hover>(hover1, "Should be an instance of Hover type.");
+
+ var hover2 = new Hover(2);
+
+ var hover3 = new Hover(hover2);
+
+ var hover4 = new Hover(Hover.getCPtr(hover3).Handle, true);
+
+ //hover4.Dispose();
+ hover3.Dispose();
+ hover2.Dispose();
+ hover1.Dispose();
+ tlog.Debug(tag, $"HoverConstructor END (OK)");
+ Assert.Pass("HoverConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Time property. Check whether Time returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.Time A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverTime()
+ {
+ tlog.Debug(tag, $"HoverTime START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(0u, hover.Time, "Should be equals to the origin value of Time");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverTime END (OK)");
+ Assert.Pass("HoverTime");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetDeviceId.Check whether GetDeviceId returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetDeviceId M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetDeviceId()
+ {
+ tlog.Debug(tag, $"HoverGetDeviceId START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(-1, hover.GetDeviceId(0), "Should be equals to the origin value of DeviceId");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetDeviceId END (OK)");
+ Assert.Pass("HoverGetDeviceId");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetState.Check whether GetState returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetState M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@partner.samsung.com")]
+ public void HoverGetState()
+ {
+ tlog.Debug(tag, $"HoverGetState START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(PointStateType.Finished, hover.GetState(0), "Should be equals to the origin value of state");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetState END (OK)");
+ Assert.Pass("HoverGetState");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetHitView.Check whether GetHitView returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetHitView M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetHitView()
+ {
+ tlog.Debug(tag, $"HoverGetHitView START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+
+ Assert.IsNotInstanceOf<View>(hover.GetHitView(0), "non-existent point returns an empty handle");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetHitView END (OK)");
+ Assert.Pass("HoverGetHitView");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetLocalPosition.Check whether GetLocalPosition returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetLocalPosition M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetLocalPosition()
+ {
+ tlog.Debug(tag, $"HoverGetLocalPosition START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(0.0f, hover.GetLocalPosition(0).X, "Should be equals to the origin value of LocalPosition.X");
+ Assert.AreEqual(0.0f, hover.GetLocalPosition(0).Y, "Should be equals to the origin value of LocalPosition.Y");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetLocalPosition END (OK)");
+ Assert.Pass("HoverGetLocalPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetScreenPosition.Check whether GetScreenPosition returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetScreenPosition M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetScreenPosition()
+ {
+ tlog.Debug(tag, $"HoverGetScreenPosition START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(0.0f, hover.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X");
+ Assert.AreEqual(0.0f, hover.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y");
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetScreenPosition END (OK)");
+ Assert.Pass("HoverGetScreenPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetPointCount.Check whether GetPointCount returns the value expected.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetPointCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetPointCount()
+ {
+ tlog.Debug(tag, $"HoverGetPointCount START");
+ /* TEST CODE */
+ Hover hover = new Hover();
+ Assert.AreEqual(0, hover.GetPointCount(), "Should be equals to the origin value of pointCount");
+ tlog.Debug(tag, $"HoverGetPointCount END (OK)");
+ Assert.Pass("HoverGetPointCount");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetCPtr.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetCPtr()
+ {
+ tlog.Debug(tag, $"HoverGetCPtr START");
+ Hover hover = new Hover();
+ Hover.getCPtr(hover);
+ Assert.Pass("HoverGetCPtr");
+ tlog.Debug(tag, $"HoverGetCPtr END (OK)");
+ Assert.Pass("HoverGetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetHoverFromPtr.")]
+ [Property("SPEC", "Tizen.NUI.Hover.GetHoverFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverGetHoverFromPtr()
+ {
+ tlog.Debug(tag, $"HoverGetHoverFromPtr START");
+ var hover2 = new Hover(2);
+
+ Hover hover = Hover.GetHoverFromPtr(Hover.getCPtr(hover2).Handle);
+ Assert.Pass("HoverGetHoverFromPtr");
+
+ hover2.Dispose();
+ hover.Dispose();
+ tlog.Debug(tag, $"HoverGetHoverFromPtr END (OK)");
+ Assert.Pass("HoverGetHoverFromPtr");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/LongPressGesture")]
+ internal class PublicLongPressGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a LongPressGesture object. Check whether LongPressGesture is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.LongPressGesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureConstructor()
+ {
+ tlog.Debug(tag, $"LongPressGestureConstructor START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ ret1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureConstructor END (OK)");
+ Assert.Pass("LongPressGestureConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test NumberOfTouches property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.NumberOfTouches A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureNumberOfTouches()
+ {
+ tlog.Debug(tag, $"LongPressGestureNumberOfTouches START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ uint num = ret1.NumberOfTouches;
+
+ tlog.Debug(tag, $"LongPressGestureNumberOfTouches END (OK)");
+ Assert.Pass("LongPressGestureNumberOfTouches");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenPoint property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.ScreenPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureScreenPoint()
+ {
+ tlog.Debug(tag, $"LongPressGestureScreenPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ Vector2 v = ret1.ScreenPoint;
+ ret1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureScreenPoint END (OK)");
+ Assert.Pass("LongPressGestureScreenPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalPoint property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.LocalPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureLocalPoint()
+ {
+ tlog.Debug(tag, $"LongPressGestureLocalPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ Vector2 v = ret1.LocalPoint;
+
+ ret1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureLocalPoint END (OK)");
+ Assert.Pass("LongPressGestureLocalPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test getCPtr property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGesturegetCPtr()
+ {
+ tlog.Debug(tag, $"LongPressGesturegetCPtr START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ global::System.Runtime.InteropServices.HandleRef a = LongPressGesture.getCPtr(ret1);
+
+ tlog.Debug(tag, $"LongPressGesturegetCPtr END (OK)");
+ Assert.Pass("LongPressGestureLocalPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetLongPressGestureFromPtr property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGesture.GetLongPressGestureFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureGetLongPressGestureFromPtr()
+ {
+ tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ LongPressGesture ret1 = new LongPressGesture(state);
+
+ LongPressGesture ret = LongPressGesture.GetLongPressGestureFromPtr(LongPressGesture.getCPtr(ret1).Handle);
+
+ ret1.Dispose();
+ ret.Dispose();
+
+
+ tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr END (OK)");
+ Assert.Pass("LongPressGestureGetLongPressGestureFromPtr");
+ }
+ }
+
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/LongPressGestureDetector")]
+ internal class PublicLongPressGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a LongPressGestureDetector object. Check whether LongPressGestureDetector is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.LongPressGestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorConstructor START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector();
+ LongPressGestureDetector a2 = new LongPressGestureDetector(7);
+ LongPressGestureDetector a3 = new LongPressGestureDetector(3, 7);
+ LongPressGestureDetector a4 = new LongPressGestureDetector(a3);
+
+ a1.Dispose();
+ a2.Dispose();
+ a3.Dispose();
+ a4.Dispose();
+ tlog.Debug(tag, $"LongPressGestureDetectorConstructor END (OK)");
+ Assert.Pass("LongPressGestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector SetTouchesRequired")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.SetTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorSetTouchesRequired()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorSetTouchesRequired START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector(7);
+
+ a1.SetTouchesRequired(3);
+ a1.SetTouchesRequired(1, 5);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorSetTouchesRequired END (OK)");
+ Assert.Pass("SetTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector GetMinimumTouchesRequired")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.GetMinimumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorGetMinimumTouchesRequired()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorGetMinimumTouchesRequired START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector(3, 7);
+ uint b1 = a1.GetMinimumTouchesRequired();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorGetMinimumTouchesRequired END (OK)");
+ Assert.Pass("GetMinimumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector GetMaximumTouchesRequired")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.GetMaximumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorGetMaximumTouchesRequired()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorGetMaximumTouchesRequired START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector(3, 7);
+ uint b1 = a1.GetMaximumTouchesRequired();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorGetMaximumTouchesRequired END (OK)");
+ Assert.Pass("GetMaximumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector GetLongPressGestureDetectorFromPtr")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.GetLongPressGestureDetectorFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorGetLongPressGestureDetectorFromPtr()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector();
+ LongPressGestureDetector a2 = LongPressGestureDetector.GetLongPressGestureDetectorFromPtr(LongPressGestureDetector.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr END (OK)");
+ Assert.Pass("GetLongPressGestureDetectorFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector DownCast")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorDownCast()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorDownCast START");
+ BaseHandle handle = new BaseHandle();
+ LongPressGestureDetector a1 = LongPressGestureDetector.DownCast(handle);
+
+ tlog.Debug(tag, $"LongPressGestureDetectorDownCast END (OK)");
+ Assert.Pass("LongPressGestureDetectorDownCast");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector DetectedSignal")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.DetectedSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorDetectedSignal()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorDetectedSignal START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector();
+ LongPressGestureDetectedSignal b1 = a1.DetectedSignal();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorDetectedSignal END (OK)");
+ Assert.Pass("LongPressGestureDetectorDetectedSignal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetector getCPtr")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorgetCPtr()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector();
+ global::System.Runtime.InteropServices.HandleRef c1 = LongPressGestureDetector.getCPtr(a1);
+
+ a1.Dispose();
+
+
+ tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr END (OK)");
+ Assert.Pass("LongPressGestureDetectorgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Detected property.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetector.Detected A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectorDetected()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectorDetected START");
+ LongPressGestureDetector a1 = new LongPressGestureDetector();
+
+ a1.Detected += OnDetected;
+ a1.Detected -= OnDetected;
+
+ LongPressGestureDetector.DetectedEventArgs e = new LongPressGestureDetector.DetectedEventArgs();
+ object o = new object();
+
+ OnDetected(o, e);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectorDetected END (OK)");
+ Assert.Pass("LongPressGestureDetectorDetected");
+ }
+
+ private void OnDetected(object obj, LongPressGestureDetector.DetectedEventArgs e)
+ {
+ View v1 = e.View;
+ e.View = v1;
+
+ LongPressGesture p1 = e.LongPressGesture;
+ e.LongPressGesture = p1;
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/PanGesture")]
+ public class PublicPanGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a PanGesture object.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.PanGesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureConstructor()
+ {
+ tlog.Debug(tag, $"PanGestureConstructor START");
+ PanGesture a1 = new PanGesture();
+
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PanGesture a2 = new PanGesture(state);
+
+ a2.Dispose();
+ a1.Dispose();
+ tlog.Debug(tag, $"PanGestureConstructor END (OK)");
+ Assert.Pass("PanGestureConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Velocity property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.Velocity A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureVelocity()
+ {
+ tlog.Debug(tag, $"PanGestureVelocity START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.Velocity;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureVelocity END (OK)");
+ Assert.Pass("PanGestureVelocity");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Displacement property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.Displacement A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDisplacement()
+ {
+ tlog.Debug(tag, $"PanGestureDisplacement START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.Displacement;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDisplacement END (OK)");
+ Assert.Pass("PanGestureDisplacement");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Position property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.Position A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGesturePosition()
+ {
+ tlog.Debug(tag, $"PanGesturePosition START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.Position;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGesturePosition END (OK)");
+ Assert.Pass("PanGesturePosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenVelocity property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.ScreenVelocity A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureScreenVelocity()
+ {
+ tlog.Debug(tag, $"PanGestureScreenVelocity START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.ScreenVelocity;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureScreenVelocity END (OK)");
+ Assert.Pass("PanGestureScreenVelocity");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenDisplacement property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.ScreenDisplacement A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureScreenDisplacement()
+ {
+ tlog.Debug(tag, $"PanGestureScreenDisplacement START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.ScreenDisplacement;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureScreenDisplacement END (OK)");
+ Assert.Pass("PanGestureScreenDisplacement");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenPosition property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.ScreenPosition A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureScreenPosition()
+ {
+ tlog.Debug(tag, $"PanGestureScreenPosition START");
+ PanGesture a1 = new PanGesture();
+ Vector2 v1 = a1.ScreenPosition;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureScreenPosition END (OK)");
+ Assert.Pass("PanGestureScreenPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test NumberOfTouches property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.NumberOfTouches A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureNumberOfTouches()
+ {
+ tlog.Debug(tag, $"PanGestureNumberOfTouches START");
+ PanGesture a1 = new PanGesture();
+ uint b1 = a1.NumberOfTouches;
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureNumberOfTouches END (OK)");
+ Assert.Pass("PanGestureNumberOfTouches");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetSpeed property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.GetSpeed M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureGetSpeed()
+ {
+ tlog.Debug(tag, $"PanGestureGetSpeed START");
+ PanGesture a1 = new PanGesture();
+ float f1 = a1.GetSpeed();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureGetSpeed END (OK)");
+ Assert.Pass("PanGestureGetSpeed");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetDistance property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.GetDistance M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureGetDistance()
+ {
+ tlog.Debug(tag, $"PanGestureGetDistance START");
+ PanGesture a1 = new PanGesture();
+ float f1 = a1.GetDistance();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureGetDistance END (OK)");
+ Assert.Pass("PanGestureGetDistance");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetScreenSpeed property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.GetScreenSpeed M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureGetScreenSpeed()
+ {
+ tlog.Debug(tag, $"PanGestureGetScreenSpeed START");
+ PanGesture a1 = new PanGesture();
+ float f1 = a1.GetScreenSpeed();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureGetScreenSpeed END (OK)");
+ Assert.Pass("PanGestureGetScreenSpeed");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetScreenDistance property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.GetScreenDistance M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureGetScreenDistance()
+ {
+ tlog.Debug(tag, $"PanGestureGetScreenDistance START");
+ PanGesture a1 = new PanGesture();
+ float f1 = a1.GetScreenDistance();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureGetScreenDistance END (OK)");
+ Assert.Pass("PanGestureGetScreenDistance");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test getCPtr property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGesturegetCPtr()
+ {
+ tlog.Debug(tag, $"PanGesturegetCPtr START");
+ PanGesture a1 = new PanGesture();
+ global::System.Runtime.InteropServices.HandleRef ptr = PanGesture.getCPtr(a1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGesturegetCPtr END (OK)");
+ Assert.Pass("PanGestureCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetPanGestureFromPtr property.")]
+ [Property("SPEC", "Tizen.NUI.PanGesture.GetPanGestureFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureGetPanGestureFromPtr()
+ {
+ tlog.Debug(tag, $"PanGestureGetPanGestureFromPtr START");
+ PanGesture a1 = new PanGesture();
+ PanGesture a2 = PanGesture.GetPanGestureFromPtr(PanGesture.getCPtr(a1).Handle);
+ a1.Dispose();
+ tlog.Debug(tag, $"PanGestureGetPanGestureFromPtr END (OK)");
+ Assert.Pass("PanGestureGetPanGestureFromPtr");
+ }
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/PanGestureDetector")]
+ class PublicPanGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a PanGestureDetector object. Check whether PanGestureDetector is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.PanGestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("COVPARAM", "")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorConstructor START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ PanGestureDetector a2 = new PanGestureDetector(a1);
+
+ a1.Dispose();
+ a2.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectorConstructor END (OK)");
+ Assert.Pass("PanGestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionLeft property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionLeft A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionLeft()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionLeft START");
+ Radian r1 = PanGestureDetector.DirectionLeft;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionLeft END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionLeft");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionRight property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionRight A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionRight()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionRight START");
+ Radian r1 = PanGestureDetector.DirectionRight;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionRight END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionLeft");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionUp property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionUp A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionUp()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionUp START");
+ Radian r1 = PanGestureDetector.DirectionUp;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionUp END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionUp");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionDown property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionDown A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionDown()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionDown START");
+ Radian r1 = PanGestureDetector.DirectionDown;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionDown END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionDown");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionHorizontal property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionHorizontal A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionHorizontal()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal START");
+ Radian r1 = PanGestureDetector.DirectionHorizontal;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionHorizontal END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionHorizontal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DirectionVertical property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DirectionVertical A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDirectionVertical()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDirectionVertical START");
+ Radian r1 = PanGestureDetector.DirectionVertical;
+
+ tlog.Debug(tag, $"PanGestureDetectorDirectionVertical END (OK)");
+ Assert.Pass("PanGestureDetectorDirectionVertical");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test DefaultThreshold property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.DefaultThreshold A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDefaultThreshold()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold START");
+ Radian r1 = PanGestureDetector.DefaultThreshold;
+
+ tlog.Debug(tag, $"PanGestureDetectorDefaultThreshold END (OK)");
+ Assert.Pass("PanGestureDetectorDefaultThreshold");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenPosition property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenPosition A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorScreenPosition()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorScreenPosition START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.ScreenPosition;
+
+ tlog.Debug(tag, $"PanGestureDetectorScreenPosition END (OK)");
+ Assert.Pass("PanGestureDetectorScreenPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenDisplacement property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenDisplacement A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorScreenDisplacement()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.ScreenDisplacement;
+
+ tlog.Debug(tag, $"PanGestureDetectorScreenDisplacement END (OK)");
+ Assert.Pass("PanGestureDetectorScreenDisplacement");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenVelocity property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.ScreenVelocity A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorScreenVelocity()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorScreenVelocity START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.ScreenVelocity;
+
+ tlog.Debug(tag, $"PanGestureDetectorScreenVelocity END (OK)");
+ Assert.Pass("PanGestureDetectorScreenVelocity");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalPosition property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalPosition A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorLocalPosition()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorLocalPosition START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.LocalPosition;
+
+ tlog.Debug(tag, $"PanGestureDetectorLocalPosition END (OK)");
+ Assert.Pass("PanGestureDetectorLocalPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalDisplacement property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalDisplacement A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorLocalDisplacement()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.LocalDisplacement;
+
+ tlog.Debug(tag, $"PanGestureDetectorLocalDisplacement END (OK)");
+ Assert.Pass("PanGestureDetectorLocalDisplacement");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalVelocity property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.LocalVelocity A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorLocalVelocity()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorLocalVelocity START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Vector2 v1 = a1.LocalVelocity;
+
+ tlog.Debug(tag, $"PanGestureDetectorLocalVelocity END (OK)");
+ Assert.Pass("PanGestureDetectorLocalVelocity");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Panning property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.Panning A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorPanning()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorPanning START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ bool b1 = a1.Panning;
+
+ tlog.Debug(tag, $"PanGestureDetectorPanning END (OK)");
+ Assert.Pass("PanGestureDetectorPanning");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SetMinimumTouchesRequired property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetMinimumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorSetMinimumTouchesRequired()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ a1.SetMinimumTouchesRequired(2);
+
+ tlog.Debug(tag, $"PanGestureDetectorSetMinimumTouchesRequired END (OK)");
+ Assert.Pass("PanGestureDetectorSetMinimumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SetMaximumTouchesRequired property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetMaximumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorSetMaximumTouchesRequired()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ a1.SetMaximumTouchesRequired(4);
+
+ tlog.Debug(tag, $"PanGestureDetectorSetMaximumTouchesRequired END (OK)");
+ Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetMinimumTouchesRequired property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetMinimumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorGetMinimumTouchesRequired()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ a1.SetMinimumTouchesRequired(4);
+
+ a1.GetMinimumTouchesRequired();
+
+ tlog.Debug(tag, $"PanGestureDetectorGetMinimumTouchesRequired END (OK)");
+ Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetMaximumTouchesRequired property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetMaximumTouchesRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorGetMaximumTouchesRequired()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ a1.SetMaximumTouchesRequired(4);
+
+ a1.GetMaximumTouchesRequired();
+
+ tlog.Debug(tag, $"PanGestureDetectorGetMaximumTouchesRequired END (OK)");
+ Assert.Pass("PanGestureDetectorSetMaximumTouchesRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test AddAngle property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.AddAngle M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorAddAngle()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorAddAngle START");
+ PanGestureDetector a1 = new PanGestureDetector();
+ Radian angle = new Radian(4);
+ Radian threshold = new Radian(15);
+ a1.AddAngle(angle);
+ a1.AddAngle(angle, threshold);
+ tlog.Debug(tag, $"PanGestureDetectorAddAngle END (OK)");
+ Assert.Pass("PanGestureDetectorAddAngle");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test AddDirection property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.AddDirection M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorAddDirection()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorAddDirection START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ Radian angle = new Radian(4);
+ Radian threshold = new Radian(15);
+ a1.AddDirection(angle);
+
+ a1.AddDirection(angle, threshold);
+
+
+ tlog.Debug(tag, $"PanGestureDetectorAddDirection END (OK)");
+ Assert.Pass("PanGestureDetectorAddDirection");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetAngleCount property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetAngleCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorGetAngleCount()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorGetAngleCount START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ Radian angle = new Radian(4);
+ a1.AddAngle(angle);
+
+ a1.GetAngleCount();
+
+ tlog.Debug(tag, $"PanGestureDetectorGetAngleCount END (OK)");
+ Assert.Pass("PanGestureDetectorAddDirection");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ClearAngles property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.ClearAngles M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorClearAngles()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorClearAngles START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ Radian angle = new Radian(4);
+ a1.AddAngle(angle);
+
+ a1.ClearAngles();
+
+ tlog.Debug(tag, $"PanGestureDetectorClearAngles END (OK)");
+ Assert.Pass("PanGestureDetectorClearAngles");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test RemoveAngle property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.RemoveAngle M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorRemoveAngle()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorRemoveAngle START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ Radian angle = new Radian(4);
+ a1.AddAngle(angle);
+
+ a1.RemoveAngle(angle);
+
+ tlog.Debug(tag, $"PanGestureDetectorRemoveAngle END (OK)");
+ Assert.Pass("PanGestureDetectorClearAngles");
+ }
+
+
+ [Test]
+ [Category("P1")]
+ [Description("Test RemoveDirection property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.RemoveDirection M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorRemoveDirection()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorRemoveDirection START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ Radian angle = new Radian(4);
+ a1.AddDirection(angle);
+
+ a1.RemoveDirection(angle);
+
+ tlog.Debug(tag, $"PanGestureDetectorRemoveDirection END (OK)");
+ Assert.Pass("PanGestureDetectorClearAngles");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test SetPanGestureProperties property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.SetPanGestureProperties M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorSetPanGestureProperties()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties START");
+ PanGesture pan = new PanGesture();
+
+ PanGestureDetector.SetPanGestureProperties(pan);
+
+ tlog.Debug(tag, $"PanGestureDetectorSetPanGestureProperties END (OK)");
+ Assert.Pass("PanGestureDetectorClearAngles");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetPanGestureDetectorFromPtr property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.GetPanGestureDetectorFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorGetPanGestureDetectorFromPtr()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ PanGestureDetector.GetPanGestureDetectorFromPtr(PanGestureDetector.getCPtr(a1).Handle);
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectorGetPanGestureDetectorFromPtr END (OK)");
+ Assert.Pass("PanGestureDetectorGetPanGestureDetectorFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Detected property.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetector.Detected A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectorDetected()
+ {
+ tlog.Debug(tag, $"PanGestureDetectorDetected START");
+ PanGestureDetector a1 = new PanGestureDetector();
+
+ a1.Detected += OnDetected;
+ a1.Detected -= OnDetected;
+
+ PanGestureDetector.DetectedEventArgs e = new PanGestureDetector.DetectedEventArgs();
+ object o = new object();
+
+ OnDetected(o, e);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectorDetected END (OK)");
+ Assert.Pass("PanGestureDetectorDetected");
+ }
+
+ private void OnDetected(object obj, PanGestureDetector.DetectedEventArgs e)
+ {
+ View v1 = e.View;
+ e.View = v1;
+
+ PanGesture p1 = e.PanGesture;
+ e.PanGesture = p1;
+ }
+ }
+
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/PinchGesture")]
+ class PublicPinchGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGesture constructor")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.PinchGesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureConstructor()
+ {
+ tlog.Debug(tag, $"PinchGestureConstructor START");
+
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a2 = new PinchGesture(state);
+
+ a2.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureConstructor END (OK)");
+ Assert.Pass("PinchGestureConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Scale property.")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.Scale A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureScale()
+ {
+ tlog.Debug(tag, $"PinchGestureScale START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a1 = new PinchGesture(state);
+
+ float f1 = a1.Scale;
+
+ tlog.Debug(tag, $"PinchGestureScale END (OK)");
+ Assert.Pass("PinchGestureScale");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Speed property.")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.Speed A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureSpeed()
+ {
+ tlog.Debug(tag, $"PinchGestureSpeed START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a1 = new PinchGesture(state);
+
+ float f1 = a1.Speed;
+
+ tlog.Debug(tag, $"PinchGestureSpeed END (OK)");
+ Assert.Pass("PinchGestureSpeed");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenCenterPoint property.")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.ScreenCenterPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureScreenCenterPoint()
+ {
+ tlog.Debug(tag, $"PinchGestureScreenCenterPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a1 = new PinchGesture(state);
+
+ Vector2 v1 = a1.ScreenCenterPoint;
+
+ tlog.Debug(tag, $"PinchGestureScreenCenterPoint END (OK)");
+ Assert.Pass("ScreenCenterPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalCenterPoint property.")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.LocalCenterPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureLocalCenterPoint()
+ {
+ tlog.Debug(tag, $"PinchGestureLocalCenterPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a1 = new PinchGesture(state);
+
+ Vector2 v1 = a1.LocalCenterPoint;
+
+ tlog.Debug(tag, $"PinchGestureLocalCenterPoint END (OK)");
+ Assert.Pass("LocalCenterPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGesture getCPtr")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGesturegetCPtr()
+ {
+ tlog.Debug(tag, $"PinchGesturegetCPtr START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a1 = new PinchGesture(state);
+ global::System.Runtime.InteropServices.HandleRef r1 = PinchGesture.getCPtr(a1);
+
+ tlog.Debug(tag, $"PinchGesturegetCPtr END (OK)");
+ Assert.Pass("PinchGesturegetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGesture GetPinchGestureFromPtr")]
+ [Property("SPEC", "Tizen.NUI.PinchGesture.GetPinchGestureFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureGetPinchGestureFromPtr()
+ {
+ tlog.Debug(tag, $"PinchGestureGetPinchGestureFromPtr START");
+
+ Gesture.StateType state = Gesture.StateType.Finished;
+ PinchGesture a2 = new PinchGesture(state);
+
+ PinchGesture a1 = PinchGesture.GetPinchGestureFromPtr(PinchGesture.getCPtr(a2).Handle);
+
+ a2.Dispose();
+ tlog.Debug(tag, $"PinchGestureGetPinchGestureFromPtr END (OK)");
+ Assert.Pass("PinchGestureGetPinchGestureFromPtr");
+ }
+ }
+
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/PinchGestureDetector")]
+ class PublicPinchGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector constructor")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.PinchGestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorConstructor START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+ PinchGestureDetector a2 = new PinchGestureDetector(a1);
+
+ a2.Dispose();
+ a1.Dispose();
+
+
+ tlog.Debug(tag, $"PinchGestureDetectorConstructor END (OK)");
+ Assert.Pass("PinchGestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector GetPinchGestureDetectorFromPtr")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.GetPinchGestureDetectorFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorGetPinchGestureDetectorFromPtr()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorGetPinchGestureDetectorFromPtr START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+
+ PinchGestureDetector a2 = PinchGestureDetector.GetPinchGestureDetectorFromPtr(PinchGestureDetector.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorGetPinchGestureDetectorFromPtr END (OK)");
+ Assert.Pass("PinchGestureDetectorGetPinchGestureDetectorFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector DownCast")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorDownCast()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorDownCast START");
+ BaseHandle handle = new BaseHandle();
+
+ PinchGestureDetector a1 = PinchGestureDetector.DownCast(handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorDownCast END (OK)");
+ Assert.Pass("PinchGestureDetectorDownCast");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector getCPtr")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorgetCPtr()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorgetCPtr START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+
+ global::System.Runtime.InteropServices.HandleRef b1 = PinchGestureDetector.getCPtr(a1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorgetCPtr END (OK)");
+ Assert.Pass("PinchGestureDetectorgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector Assign")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorAssign()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorAssign START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+
+ PinchGestureDetector b1 = a1;
+
+ a1.Dispose();
+ b1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorAssign END (OK)");
+ Assert.Pass("PinchGestureDetectorAssign");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetector DetectedSignal")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.DetectedSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorDetectedSignal()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorDetectedSignal START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+
+ PinchGestureDetectedSignal b1 = a1.DetectedSignal();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorDetectedSignal END (OK)");
+ Assert.Pass("PinchGestureDetectorDetectedSignal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Detected property.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetector.Detected A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectorDetected()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectorDetected START");
+ PinchGestureDetector a1 = new PinchGestureDetector();
+
+ a1.Detected += OnDetected;
+ a1.Detected -= OnDetected;
+
+ PinchGestureDetector.DetectedEventArgs e = new PinchGestureDetector.DetectedEventArgs();
+ object o = new object();
+
+ OnDetected(o, e);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectorDetected END (OK)");
+ Assert.Pass("PinchGestureDetectorDetected");
+ }
+
+ private void OnDetected(object obj, PinchGestureDetector.DetectedEventArgs e)
+ {
+ View v1 = e.View;
+ e.View = v1;
+
+ PinchGesture p1 = e.PinchGesture;
+ e.PinchGesture = p1;
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/RotationGesture")]
+ class PublicRotationGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGesture constructor")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.RotationGesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureConstructor()
+ {
+ tlog.Debug(tag, $"RotationGestureConstructor START");
+
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a2 = new RotationGesture(state);
+
+ a2.Dispose();
+
+
+ tlog.Debug(tag, $"RotationGestureConstructor END (OK)");
+ Assert.Pass("RotationGesture");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Rotation property.")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.Rotation A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureRotation()
+ {
+ tlog.Debug(tag, $"RotationGestureRotation START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a1 = new RotationGesture(state);
+
+ float f1 = a1.Rotation;
+
+ tlog.Debug(tag, $"RotationGestureRotation END (OK)");
+ Assert.Pass("RotationGestureRotation");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenCenterPoint property.")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.ScreenCenterPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureScreenCenterPoint()
+ {
+ tlog.Debug(tag, $"RotationGestureScreenCenterPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a1 = new RotationGesture(state);
+
+ Vector2 v1 = a1.ScreenCenterPoint;
+
+ tlog.Debug(tag, $"RotationGestureScreenCenterPoint END (OK)");
+ Assert.Pass("RotationGestureScreenCenterPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalCenterPoint property.")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.LocalCenterPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureLocalCenterPoint()
+ {
+ tlog.Debug(tag, $"RotationGestureLocalCenterPoint START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a1 = new RotationGesture(state);
+
+ Vector2 v1 = a1.LocalCenterPoint;
+
+ tlog.Debug(tag, $"RotationGestureLocalCenterPoint END (OK)");
+ Assert.Pass("RotationGestureLocalCenterPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGesture getCPtr")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGesturegetCPtr()
+ {
+ tlog.Debug(tag, $"RotationGesturegetCPtr START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a1 = new RotationGesture(state);
+ global::System.Runtime.InteropServices.HandleRef r1 = RotationGesture.getCPtr(a1);
+
+ tlog.Debug(tag, $"RotationGesturegetCPtr END (OK)");
+ Assert.Pass("RotationGesturegetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGesture GetRotationGestureFromPtr")]
+ [Property("SPEC", "Tizen.NUI.RotationGesture.GetRotationGestureFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureGetRotationGestureFromPtr()
+ {
+ tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr START");
+ Gesture.StateType state = Gesture.StateType.Finished;
+ RotationGesture a2 = new RotationGesture(state);
+ RotationGesture a1 = RotationGesture.GetRotationGestureFromPtr(RotationGesture.getCPtr(a2).Handle);
+
+ a2.Dispose();
+ tlog.Debug(tag, $"RotationGestureGetRotationGestureFromPtr END (OK)");
+ Assert.Pass("RotationGestureGetRotationGestureFromPtr");
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/RotationGestureDetector")]
+ class PublicRotationGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector constructor")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.RotationGestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorConstructor START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+ RotationGestureDetector a2 = new RotationGestureDetector(a1);
+
+ a2.Dispose();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorConstructor END (OK)");
+ Assert.Pass("RotationGestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector GetRotationGestureDetectorFromPtr")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.GetRotationGestureDetectorFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorGetRotationGestureDetectorFromPtr()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+
+ RotationGestureDetector a2 = RotationGestureDetector.GetRotationGestureDetectorFromPtr(RotationGestureDetector.getCPtr(a1).Handle);
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorGetRotationGestureDetectorFromPtr END (OK)");
+ Assert.Pass("RotationGestureDetectorGetRotationGestureDetectorFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector DownCast")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorDownCast()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorDownCast START");
+ BaseHandle handle = new BaseHandle();
+
+ RotationGestureDetector a1 = RotationGestureDetector.DownCast(handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorDownCast END (OK)");
+ Assert.Pass("RotationGestureDetectorDownCast");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector getCPtr")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorgetCPtr()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorgetCPtr START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+ global::System.Runtime.InteropServices.HandleRef b1 = RotationGestureDetector.getCPtr(a1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorgetCPtr END (OK)");
+ Assert.Pass("RotationGestureDetectorgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector Assign")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorAssign()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorAssign START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+
+ RotationGestureDetector b1 = a1;
+
+ b1.Dispose();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorAssign END (OK)");
+ Assert.Pass("RotationGestureDetectorAssign");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetector DetectedSignal")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.DetectedSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorDetectedSignal()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+
+ RotationGestureDetectedSignal b1 = a1.DetectedSignal();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal END (OK)");
+ Assert.Pass("RotationGestureDetectorDetectedSignal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Detected property.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetector.Detected A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectorDetected()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectorDetected START");
+ RotationGestureDetector a1 = new RotationGestureDetector();
+
+ a1.Detected += OnDetected;
+ a1.Detected -= OnDetected;
+
+ RotationGestureDetector.DetectedEventArgs e = new RotationGestureDetector.DetectedEventArgs();
+ object o = new object();
+
+ OnDetected(o, e);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectorDetected END (OK)");
+ Assert.Pass("RotationGestureDetectorDetected");
+ }
+
+ private void OnDetected(object obj, RotationGestureDetector.DetectedEventArgs e)
+ {
+ View v1 = e.View;
+ e.View = v1;
+
+ RotationGesture p1 = e.RotationGesture;
+ e.RotationGesture = p1;
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/TapGesture")]
+ class PublicTapGestureTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGesture constructor")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.TapGesture C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureConstructor()
+ {
+ tlog.Debug(tag, $"TapGestureConstructor START");
+
+ TapGesture a1 = new TapGesture();
+
+ a1.Dispose();
+
+
+ tlog.Debug(tag, $"TapGestureConstructor END (OK)");
+ Assert.Pass("TapGestureConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test NumberOfTaps property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.NumberOfTaps A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureNumberOfTaps()
+ {
+ tlog.Debug(tag, $"TapGestureNumberOfTaps START");
+ TapGesture a1 = new TapGesture();
+
+ uint b1 = a1.NumberOfTaps;
+
+ tlog.Debug(tag, $"TapGestureNumberOfTaps END (OK)");
+ Assert.Pass("TapGestureNumberOfTaps");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test NumberOfTouches property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.NumberOfTouches A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureNumberOfTouches()
+ {
+ tlog.Debug(tag, $"TapGestureNumberOfTouches START");
+ TapGesture a1 = new TapGesture();
+
+ uint b1 = a1.NumberOfTouches;
+
+ tlog.Debug(tag, $"TapGestureNumberOfTouches END (OK)");
+ Assert.Pass("TapGestureNumberOfTouches");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test ScreenPoint property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.ScreenPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureScreenPoint()
+ {
+ tlog.Debug(tag, $"TapGestureScreenPoint START");
+ TapGesture a1 = new TapGesture();
+
+ Vector2 v1 = a1.ScreenPoint;
+
+ tlog.Debug(tag, $"TapGestureScreenPoint END (OK)");
+ Assert.Pass("TapGestureScreenPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test LocalPoint property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.LocalPoint A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureLocalPoint()
+ {
+ tlog.Debug(tag, $"TapGestureLocalPoint START");
+ TapGesture a1 = new TapGesture();
+
+ Vector2 v1 = a1.LocalPoint;
+
+ tlog.Debug(tag, $"TapGestureLocalPoint END (OK)");
+ Assert.Pass("TapGestureLocalPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test getCPtr property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.getCPtr A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGesturegetCPtr()
+ {
+ tlog.Debug(tag, $"TapGesturegetCPtr START");
+ TapGesture a1 = new TapGesture();
+
+ global::System.Runtime.InteropServices.HandleRef p1 = TapGesture.getCPtr(a1);
+
+ tlog.Debug(tag, $"TapGesturegetCPtr END (OK)");
+ Assert.Pass("TapGesturegetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test GetTapGestureFromPtr property.")]
+ [Property("SPEC", "Tizen.NUI.TapGesture.GetTapGestureFromPtr A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureGetTapGestureFromPtr()
+ {
+ tlog.Debug(tag, $"TapGestureGetTapGestureFromPtr START");
+ TapGesture a1 = new TapGesture();
+
+ TapGesture a2 = TapGesture.GetTapGestureFromPtr(TapGesture.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureGetTapGestureFromPtr END (OK)");
+ Assert.Pass("TapGestureGetTapGestureFromPtr");
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/TapGestureDetector")]
+ class PublicTapGestureDetectorTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector constructor")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.TapGestureDetector C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorConstructor()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorConstructor START");
+
+ TapGestureDetector a1 = new TapGestureDetector();
+ TapGestureDetector a2 = new TapGestureDetector(4);
+ TapGestureDetector a3 = new TapGestureDetector(a2);
+
+ a3.Dispose();
+ a2.Dispose();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorConstructor END (OK)");
+ Assert.Pass("TapGestureDetectorConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector SetMinimumTapsRequired")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.SetMinimumTapsRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorSetMinimumTapsRequired()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorSetMinimumTapsRequired START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ a1.SetMinimumTapsRequired(2);
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorSetMinimumTapsRequired END (OK)");
+ Assert.Pass("TapGestureDetectorSetMinimumTapsRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector SetMaximumTapsRequired")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.SetMaximumTapsRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorSetMaximumTapsRequired()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorSetMaximumTapsRequired START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ a1.SetMaximumTapsRequired(9);
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorSetMaximumTapsRequired END (OK)");
+ Assert.Pass("TapGestureDetectorSetMaximumTapsRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector GetMinimumTapsRequired")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.GetMinimumTapsRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorGetMinimumTapsRequired()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorGetMinimumTapsRequired START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ a1.SetMinimumTapsRequired(2);
+
+ a1.GetMinimumTapsRequired();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorGetMinimumTapsRequired END (OK)");
+ Assert.Pass("TapGestureDetectorGetMinimumTapsRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector GetMaximumTapsRequired")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.GetMaximumTapsRequired M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorGetMaximumTapsRequired()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorGetMaximumTapsRequired START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ a1.SetMaximumTapsRequired(9);
+
+ a1.GetMaximumTapsRequired();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorGetMaximumTapsRequired END (OK)");
+ Assert.Pass("TapGestureDetectorGetMaximumTapsRequired");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector DownCast")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorDownCast()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorDownCast START");
+ BaseHandle handle = new BaseHandle();
+
+ TapGestureDetector a1 = TapGestureDetector.DownCast(handle);
+
+ tlog.Debug(tag, $"TapGestureDetectorDownCast END (OK)");
+ Assert.Pass("TapGestureDetectorDownCast");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector getCPtr")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorgetCPtr()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorgetCPtr START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ global::System.Runtime.InteropServices.HandleRef p1 = TapGestureDetector.getCPtr(a1);
+
+ tlog.Debug(tag, $"TapGestureDetectorgetCPtr END (OK)");
+ Assert.Pass("TapGestureDetectorgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector GetTapGestureDetectorFromPtr")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.GetTapGestureDetectorFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorGetTapGestureDetectorFromPtr()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorGetTapGestureDetectorFromPtr START");
+ TapGestureDetector a1 = new TapGestureDetector();
+
+ TapGestureDetector a2 = TapGestureDetector.GetTapGestureDetectorFromPtr(TapGestureDetector.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorGetTapGestureDetectorFromPtr END (OK)");
+ Assert.Pass("TapGestureDetectorGetTapGestureDetectorFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetector DetectedSignal")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.DetectedSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorDetectedSignal()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorDetectedSignal START");
+ TapGestureDetector a1 = new TapGestureDetector();
+ TapGestureDetectedSignal b1 = a1.DetectedSignal();
+
+ tlog.Debug(tag, $"TapGestureDetectorDetectedSignal END (OK)");
+ Assert.Pass("TapGestureDetectorDetectedSignal");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Detected property.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetector.Detected A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectorDetected()
+ {
+ tlog.Debug(tag, $"TapGestureDetectorDetected START");
+ TapGestureDetector a1 = new TapGestureDetector();
+
+ a1.Detected += OnDetected;
+ a1.Detected -= OnDetected;
+
+ TapGestureDetector.DetectedEventArgs e = new TapGestureDetector.DetectedEventArgs();
+ object o = new object();
+
+ OnDetected(o, e);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectorDetected END (OK)");
+ Assert.Pass("TapGestureDetectorDetected");
+ }
+
+ private void OnDetected(object obj, TapGestureDetector.DetectedEventArgs e)
+ {
+ View v1 = e.View;
+ e.View = v1;
+
+ TapGesture p1 = e.TapGesture;
+ e.TapGesture = p1;
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/Touch")]
+ class PublicTouchTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch constructor")]
+ [Property("SPEC", "Tizen.NUI.Touch.Touch C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchConstructor()
+ {
+ tlog.Debug(tag, $"TouchConstructor START");
+
+ Touch a1 = new Touch();
+ Touch a2 = new Touch(a1);
+
+ a2.Dispose();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchConstructor END (OK)");
+ Assert.Pass("TouchConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetTime")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetTime M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetTime()
+ {
+ tlog.Debug(tag, $"TouchGetTime START");
+ Touch a1 = new Touch();
+ a1.GetTime();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetTime END (OK)");
+ Assert.Pass("TouchGetTime");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetPointCount")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetPointCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetPointCount()
+ {
+ tlog.Debug(tag, $"TouchGetPointCount START");
+ Touch a1 = new Touch();
+ a1.GetPointCount();
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetPointCount END (OK)");
+ Assert.Pass("TouchGetPointCount");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetDeviceId")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetDeviceId M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetDeviceId()
+ {
+ tlog.Debug(tag, $"TouchGetDeviceId START");
+ Touch a1 = new Touch();
+ a1.GetDeviceId(1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetDeviceId END (OK)");
+ Assert.Pass("TouchGetDeviceId");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetState")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetState M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetState()
+ {
+ tlog.Debug(tag, $"TouchGetState START");
+ Touch a1 = new Touch();
+ PointStateType b1 = a1.GetState(1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetState END (OK)");
+ Assert.Pass("TouchGetDeviceId");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetHitView")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetHitView M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetHitView()
+ {
+ tlog.Debug(tag, $"TouchGetHitView START");
+ Touch a1 = new Touch();
+ View b1 = a1.GetHitView(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetHitView END (OK)");
+ Assert.Pass("TouchGetHitView");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetLocalPosition")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetLocalPosition M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetLocalPosition()
+ {
+ tlog.Debug(tag, $"TouchGetLocalPosition START");
+ Touch a1 = new Touch();
+ Vector2 b1 = a1.GetLocalPosition(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetLocalPosition END (OK)");
+ Assert.Pass("TouchGetLocalPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetScreenPosition")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetScreenPosition M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetScreenPosition()
+ {
+ tlog.Debug(tag, $"TouchGetScreenPosition START");
+ Touch a1 = new Touch();
+ Vector2 b1 = a1.GetScreenPosition(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetScreenPosition END (OK)");
+ Assert.Pass("TouchGetScreenPosition");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetRadius")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetRadius M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetRadius()
+ {
+ tlog.Debug(tag, $"TouchGetRadius START");
+ Touch a1 = new Touch();
+ float f1 = a1.GetRadius(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetRadius END (OK)");
+ Assert.Pass("TouchGetRadius");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetEllipseRadius")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetEllipseRadius M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetEllipseRadius()
+ {
+ tlog.Debug(tag, $"TouchGetEllipseRadius START");
+ Touch a1 = new Touch();
+ Vector2 b1 = a1.GetEllipseRadius(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetEllipseRadius END (OK)");
+ Assert.Pass("TouchGetEllipseRadius");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetPressure")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetPressure M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetPressure()
+ {
+ tlog.Debug(tag, $"TouchGetPressure START");
+ Touch a1 = new Touch();
+ float f1 = a1.GetPressure(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetPressure END (OK)");
+ Assert.Pass("TouchGetPressure");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetMouseButton")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetMouseButton M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetMouseButton()
+ {
+ tlog.Debug(tag, $"TouchGetMouseButton START");
+ Touch a1 = new Touch();
+ MouseButton b1 = a1.GetMouseButton(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetMouseButton END (OK)");
+ Assert.Pass("TouchGetMouseButton");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch getCPtr")]
+ [Property("SPEC", "Tizen.NUI.Touch.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchgetCPtr()
+ {
+ tlog.Debug(tag, $"TouchgetCPtr START");
+ Touch a1 = new Touch();
+ global::System.Runtime.InteropServices.HandleRef b1 = Touch.getCPtr(a1);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchgetCPtr END (OK)");
+ Assert.Pass("TouchgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetTouchFromPtr")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetTouchFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetTouchFromPtr()
+ {
+ tlog.Debug(tag, $"TouchGetTouchFromPtr START");
+ Touch a1 = new Touch();
+ Touch a2 = Touch.GetTouchFromPtr(Touch.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetTouchFromPtr END (OK)");
+ Assert.Pass("TouchGetTouchFromPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Touch GetAngle")]
+ [Property("SPEC", "Tizen.NUI.Touch.GetAngle M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchGetAngle()
+ {
+ tlog.Debug(tag, $"TouchGetAngle START");
+ Touch a1 = new Touch();
+ Degree b1 = a1.GetAngle(2);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"TouchGetAngle END (OK)");
+ Assert.Pass("TouchGetAngle");
+ }
+ }
+
+}
\ No newline at end of file
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("public/Events/Wheel")]
+ class PublicWheelTest
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel constructor")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Wheel C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelConstructor()
+ {
+ tlog.Debug(tag, $"WheelConstructor START");
+
+ Wheel a1 = new Wheel();
+ Wheel.WheelType type = Wheel.WheelType.MouseWheel;
+ Vector2 v = new Vector2(0.0f, 0.0f);
+ Wheel a2 = new Wheel(type, 0, 0, v, 0, 123);
+
+ a2.Dispose();
+ a1.Dispose();
+
+ tlog.Debug(tag, $"WheelConstructor END (OK)");
+ Assert.Pass("WheelConstructor");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Type property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Type A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelType()
+ {
+ tlog.Debug(tag, $"WheelType START");
+ Wheel a1 = new Wheel();
+
+ Wheel.WheelType b1 = a1.Type;
+
+ tlog.Debug(tag, $"WheelType END (OK)");
+ Assert.Pass("WheelType");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Direction property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Direction A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelDirection()
+ {
+ tlog.Debug(tag, $"WheelDirection START");
+ Wheel a1 = new Wheel();
+
+ int b1 = a1.Direction;
+
+ tlog.Debug(tag, $"WheelDirection END (OK)");
+ Assert.Pass("WheelDirection");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Modifiers property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Modifiers A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelModifiers()
+ {
+ tlog.Debug(tag, $"WheelModifiers START");
+ Wheel a1 = new Wheel();
+
+ uint b1 = a1.Modifiers;
+
+ tlog.Debug(tag, $"WheelModifiers END (OK)");
+ Assert.Pass("WheelModifiers");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Point property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Point A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelPoint()
+ {
+ tlog.Debug(tag, $"WheelPoint START");
+ Wheel a1 = new Wheel();
+
+ Vector2 v1 = a1.Point;
+
+ tlog.Debug(tag, $"WheelPoint END (OK)");
+ Assert.Pass("WheelPoint");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Z property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.Z A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelZ()
+ {
+ tlog.Debug(tag, $"WheelZ START");
+ Wheel a1 = new Wheel();
+
+ int b1 = a1.Z;
+
+ tlog.Debug(tag, $"WheelZ END (OK)");
+ Assert.Pass("WheelZ");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test TimeStamp property.")]
+ [Property("SPEC", "Tizen.NUI.Wheel.TimeStamp A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelTimeStamp()
+ {
+ tlog.Debug(tag, $"WheelTimeStamp START");
+ Wheel a1 = new Wheel();
+
+ uint b1 = a1.TimeStamp;
+
+ tlog.Debug(tag, $"WheelTimeStamp END (OK)");
+ Assert.Pass("WheelTimeStamp");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel IsShiftModifier")]
+ [Property("SPEC", "Tizen.NUI.Wheel.IsShiftModifier M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelIsShiftModifier()
+ {
+ tlog.Debug(tag, $"WheelIsShiftModifier START");
+ Wheel a1 = new Wheel();
+ bool b1 = a1.IsShiftModifier();
+
+ tlog.Debug(tag, $"WheelIsShiftModifier END (OK)");
+ Assert.Pass("WheelIsShiftModifier");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel IsCtrlModifier")]
+ [Property("SPEC", "Tizen.NUI.Wheel.IsCtrlModifier M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelIsCtrlModifier()
+ {
+ tlog.Debug(tag, $"WheelIsCtrlModifier START");
+ Wheel a1 = new Wheel();
+ bool b1 = a1.IsCtrlModifier();
+
+ tlog.Debug(tag, $"WheelIsCtrlModifier END (OK)");
+ Assert.Pass("WheelIsCtrlModifier");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel IsAltModifier")]
+ [Property("SPEC", "Tizen.NUI.Wheel.IsAltModifier M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelIsAltModifier()
+ {
+ tlog.Debug(tag, $"WheelIsAltModifier START");
+ Wheel a1 = new Wheel();
+ bool b1 = a1.IsAltModifier();
+
+ tlog.Debug(tag, $"WheelIsAltModifier END (OK)");
+ Assert.Pass("WheelIsAltModifier");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel getCPtr")]
+ [Property("SPEC", "Tizen.NUI.Wheel.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelgetCPtr()
+ {
+ tlog.Debug(tag, $"WheelgetCPtr START");
+ Wheel a1 = new Wheel();
+ global::System.Runtime.InteropServices.HandleRef b1 = Wheel.getCPtr(a1);
+
+ tlog.Debug(tag, $"WheelgetCPtr END (OK)");
+ Assert.Pass("WheelgetCPtr");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Wheel GetWheelFromPtr")]
+ [Property("SPEC", "Tizen.NUI.Wheel.GetWheelFromPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelGetWheelFromPtr()
+ {
+ tlog.Debug(tag, $"WheelGetWheelFromPtr START");
+ Wheel a1 = new Wheel();
+
+ Wheel a2 = Wheel.GetWheelFromPtr(Wheel.getCPtr(a1).Handle);
+
+ a1.Dispose();
+
+ tlog.Debug(tag, $"WheelGetWheelFromPtr END (OK)");
+ Assert.Pass("WheelGetWheelFromPtr");
+ }
+ }
+
+}
\ No newline at end of file