--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/Alignment")]
+ public class InternalAlignmentTest
+ {
+ 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("Alignment constructor.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Alignment C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentConstructor()
+ {
+ tlog.Debug(tag, $"AlignmentConstructor START");
+
+ var testingTarget = new Alignment();
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment constructor. With horizontal type.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Alignment C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentConstructorWithHorizontalType()
+ {
+ tlog.Debug(tag, $"AlignmentConstructorWithHorizontalType START");
+
+ var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentConstructorWithHorizontalType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment constructor. With horizontal & vertical type.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Alignment C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentConstructorWithHorizontalAndVerticalType()
+ {
+ tlog.Debug(tag, $"AlignmentConstructorWithHorizontalAndVerticalType START");
+
+ var testingTarget = new Alignment(Alignment.Type.HorizontalCenter, Alignment.Type.VerticalCenter);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentConstructorWithHorizontalAndVerticalType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment constructor. With Alignment.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Alignment C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentConstructorWithAlignment()
+ {
+ tlog.Debug(tag, $"AlignmentConstructorWithAlignment START");
+
+ using (Alignment alignMent = new Alignment(Alignment.Type.HorizontalRight))
+ {
+ var testingTarget = new Alignment(alignMent);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AlignmentConstructorWithAlignment END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment getCPtr.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentGetCPtr()
+ {
+ tlog.Debug(tag, $"AlignmentGetCPtr START");
+
+ var testingTarget = new Alignment(new ImageView().SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ try
+ {
+ Alignment.getCPtr(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentGetCPtr END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding constructor.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding.Padding C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPadding()
+ {
+ tlog.Debug(tag, $"AlignmentPadding START");
+
+ var testingTarget = new Alignment.Padding();
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPadding END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding constructor. With floats.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding.Padding C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingConstructorWithFloats()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingConstructorWithFloats START");
+
+ var testingTarget = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingConstructorWithFloats END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment SetAlignmentType.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.SetAlignmentType M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentSetAlignmentType()
+ {
+ tlog.Debug(tag, $"AlignmentSetAlignmentType START");
+
+ var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ tlog.Debug(tag, "Alignment.Type : " + testingTarget.GetAlignmentType());
+
+ testingTarget.SetAlignmentType(Alignment.Type.VerticalBottom);
+ tlog.Debug(tag, "Alignment.Type : " + testingTarget.GetAlignmentType());
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentSetAlignmentType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment SetScaling.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.SetScaling M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentSetScaling()
+ {
+ tlog.Debug(tag, $"AlignmentSetScaling START");
+
+ var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ tlog.Debug(tag, "Alignment.Scaling : " + testingTarget.GetScaling());
+
+ testingTarget.SetScaling(Alignment.Scaling.ScaleToFill);
+ tlog.Debug(tag, "Alignment.Scaling : " + testingTarget.GetScaling());
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentSetScaling END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment SetPadding.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.SetPadding M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentSetPadding()
+ {
+ tlog.Debug(tag, $"AlignmentSetPadding START");
+
+ var testingTarget = new Alignment(Alignment.Type.HorizontalCenter);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());
+
+ using (Alignment.Padding padding = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f))
+ {
+ testingTarget.SetPadding(padding);
+ tlog.Debug(tag, "Alignment.Padding : " + testingTarget.GetPadding());
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentSetPadding END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding getCPtr.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingGetCPtr()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingGetCPtr START");
+
+ var testingTarget = new Alignment.Padding();
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ try
+ {
+ Alignment.Padding.getCPtr(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingGetCPtr END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment Assign.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentAssign()
+ {
+ tlog.Debug(tag, $"AlignmentAssign START");
+
+ var testingTarget = new Alignment();
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ try
+ {
+ testingTarget.Assign(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentAssign END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment DownCast.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentDownCast()
+ {
+ tlog.Debug(tag, $"AlignmentDownCast START");
+
+ var testingTarget = new Alignment();
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment>(testingTarget, "Should be an instance of Alignment type.");
+
+ try
+ {
+ Alignment.DownCast(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentDownCast END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding left.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding left A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingLeft()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingLeft START");
+
+ var testingTarget = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ Assert.AreEqual(1.0f, testingTarget.left, "Should be equal!");
+
+ testingTarget.left = 4.0f;
+ Assert.AreEqual(4.0f, testingTarget.left, "Should be equal!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingLeft END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding right.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding right A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingRight()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingRight START");
+
+ var testingTarget = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ Assert.AreEqual(2.0f, testingTarget.right, "Should be equal!");
+
+ testingTarget.right = 3.0f;
+ Assert.AreEqual(3.0f, testingTarget.right, "Should be equal!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingRight END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding top.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding top A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingTop()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingTop START");
+
+ var testingTarget = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ Assert.AreEqual(3.0f, testingTarget.top, "Should be equal!");
+
+ testingTarget.top = 2.0f;
+ Assert.AreEqual(2.0f, testingTarget.top, "Should be equal!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingTop END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Alignment.Padding bottom.")]
+ [Property("SPEC", "Tizen.NUI.Alignment.Padding bottom A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AlignmentPaddingBottom()
+ {
+ tlog.Debug(tag, $"AlignmentPaddingBottom START");
+
+ var testingTarget = new Alignment.Padding(1.0f, 2.0f, 3.0f, 4.0f);
+ Assert.IsNotNull(testingTarget, "Can't create success object Alignment");
+ Assert.IsInstanceOf<Alignment.Padding>(testingTarget, "Should be an instance of Padding type.");
+
+ Assert.AreEqual(4.0f, testingTarget.bottom, "Should be equal!");
+
+ testingTarget.bottom = 1.0f;
+ Assert.AreEqual(1.0f, testingTarget.bottom, "Should be equal!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AlignmentPaddingBottom END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/AngleAxis")]
+ public class InternalAngleAxisTest
+ {
+ 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("AngleAxis constructor.")]
+ [Property("SPEC", "Tizen.NUI.AngleAxis.AngleAxis C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleAxisConstructor()
+ {
+ tlog.Debug(tag, $"AngleAxisConstructor START");
+
+ var testingTarget = new AngleAxis();
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
+ Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AngleAxisConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleAxis constructor. With Radian and Vector3.")]
+ [Property("SPEC", "Tizen.NUI.AngleAxis.AngleAxis C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleAxisConstructorWithRadianAndVector3()
+ {
+ tlog.Debug(tag, $"AngleAxisConstructorWithRadianAndVector3 START");
+
+ using (Radian radian = new Radian(0.3f))
+ {
+ using (Vector3 vector = new Vector3(1.0f, 2.0f, 3.0f))
+ {
+ var testingTarget = new AngleAxis(radian, vector);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
+ Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleAxisConstructorWithRadianAndVector3 END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleAxis getCPtr.")]
+ [Property("SPEC", "Tizen.NUI.AngleAxis.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleAxisGetCPtr()
+ {
+ tlog.Debug(tag, $"AngleAxisGetCPtr START");
+
+ var testingTarget = new AngleAxis();
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
+ Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
+
+ try
+ {
+ AngleAxis.getCPtr(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AngleAxisGetCPtr END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleAxis constructor. angle.")]
+ [Property("SPEC", "Tizen.NUI.AngleAxis.angle A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleAxisAngle()
+ {
+ tlog.Debug(tag, $"AngleAxisAngle START");
+
+ using (Radian radian = new Radian(0.3f))
+ {
+ using (Vector3 vector = new Vector3(1.0f, 2.0f, 3.0f))
+ {
+ var testingTarget = new AngleAxis(radian, vector);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
+ Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
+
+ Assert.AreEqual(0.3f, testingTarget.angle.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.angle = new Radian(0.8f);
+ Assert.AreEqual(0.8f, testingTarget.angle.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleAxisAngle END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleAxis constructor. axis.")]
+ [Property("SPEC", "Tizen.NUI.AngleAxis.axis A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleAxisAxis()
+ {
+ tlog.Debug(tag, $"AngleAxisAxis START");
+
+ using (Radian radian = new Radian(0.3f))
+ {
+ using (Vector3 vector = new Vector3(1.0f, 2.0f, 3.0f))
+ {
+ var testingTarget = new AngleAxis(radian, vector);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleAxis");
+ Assert.IsInstanceOf<AngleAxis>(testingTarget, "Should be an instance of AngleAxis type.");
+
+ Assert.AreEqual(1.0f, testingTarget.axis.X, "Should be equal!");
+ Assert.AreEqual(2.0f, testingTarget.axis.Y, "Should be equal!");
+ Assert.AreEqual(3.0f, testingTarget.axis.Z, "Should be equal!");
+
+ testingTarget.axis = new Vector3(3.0f, 2.0f, 1.0f);
+ Assert.AreEqual(3.0f, testingTarget.axis.X, "Should be equal!");
+ Assert.AreEqual(2.0f, testingTarget.axis.Y, "Should be equal!");
+ Assert.AreEqual(1.0f, testingTarget.axis.Z, "Should be equal!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleAxisAxis END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/AngleThresholdPair")]
+ public class InternalAngleThresholdPairTest
+ {
+ 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("AngleThresholdPair constructor.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.AngleThresholdPair C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairConstructor()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairConstructor START");
+
+ var testingTarget = new AngleThresholdPair();
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AngleThresholdPairConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleThresholdPair constructor. With Radians.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.AngleThresholdPair C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairConstructorWithRadians()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairConstructorWithRadians START");
+
+ using (Radian t = new Radian(0.3f))
+ {
+ using (Radian u = new Radian(0.8f))
+ {
+ var testingTarget = new AngleThresholdPair(t, u);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleThresholdPairConstructorWithRadians END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleThresholdPair constructor. With AngleThresholdPair.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.AngleThresholdPair C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairConstructorWithAngleThresholdPair()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairConstructorWithAngleThresholdPair START");
+
+ using (Radian t = new Radian(0.3f))
+ {
+ using (Radian u = new Radian(0.8f))
+ {
+ using (AngleThresholdPair angleThresholdPair = new AngleThresholdPair(t, u))
+ {
+ var testingTarget = new AngleThresholdPair(angleThresholdPair);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ testingTarget.Dispose();
+ }
+ }
+ }
+
+ tlog.Debug(tag, $"AngleThresholdPairConstructorWithAngleThresholdPair END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleThresholdPair constructor. second.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.second A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairSecond()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairSecond START");
+
+ using (Radian t = new Radian(0.3f))
+ {
+ using (Radian u = new Radian(0.8f))
+ {
+ var testingTarget = new AngleThresholdPair(t, u);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ Assert.AreEqual(0.8f, testingTarget.second.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.second = new Radian(0.9f);
+ Assert.AreEqual(0.9f, testingTarget.second.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleThresholdPairSecond END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleThresholdPair first.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.first A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairFirst()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairFirst START");
+
+ using (Radian t = new Radian(0.3f))
+ {
+ using (Radian u = new Radian(0.8f))
+ {
+ var testingTarget = new AngleThresholdPair(t, u);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ Assert.AreEqual(0.3f, testingTarget.first.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.first = new Radian(0.4f);
+ Assert.AreEqual(0.4f, testingTarget.first.ConvertToFloat(), "Should be equal!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleThresholdPairFirst END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AngleThresholdPair getCPtr.")]
+ [Property("SPEC", "Tizen.NUI.AngleThresholdPair.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AngleThresholdPairGetCPtr()
+ {
+ tlog.Debug(tag, $"AngleThresholdPairGetCPtr START");
+
+ using (Radian t = new Radian(0.3f))
+ {
+ using (Radian u = new Radian(0.8f))
+ {
+ var testingTarget = new AngleThresholdPair(t, u);
+ Assert.IsNotNull(testingTarget, "Can't create success object AngleThresholdPair");
+ Assert.IsInstanceOf<AngleThresholdPair>(testingTarget, "Should be an instance of AngleThresholdPair type.");
+
+ try
+ {
+ AngleThresholdPair.getCPtr(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"AngleThresholdPairGetCPtr END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/Any")]
+ public class InternalAnyTest
+ {
+ 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("Any constructor.")]
+ [Property("SPEC", "Tizen.NUI.Any.Any C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyConstructor()
+ {
+ tlog.Debug(tag, $"AnyConstructor START");
+
+ var testingTarget = new Any();
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any constructor. With Any.")]
+ [Property("SPEC", "Tizen.NUI.Any.Any C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyConstructorWithAny()
+ {
+ tlog.Debug(tag, $"AnyConstructorWithAny START");
+
+ using (Any any = new Any())
+ {
+ var testingTarget = new Any(any);
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AnyConstructorWithAny END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any Assign.")]
+ [Property("SPEC", "Tizen.NUI.Any.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyAssign()
+ {
+ tlog.Debug(tag, $"AnyAssign START");
+
+ using (Any any = new Any())
+ {
+ var testingTarget = new Any(any);
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ try
+ {
+ any.Assign(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AnyAssign END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("Any AssertAlways.")]
+ //[Property("SPEC", "Tizen.NUI.Any.AssertAlways M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void AnyAssertAlways()
+ //{
+ // tlog.Debug(tag, $"AnyAssertAlways START");
+
+ // try
+ // {
+ // Any.AssertAlways("This is the test for Any class.");
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // tlog.Debug(tag, $"AnyAssertAlways END (OK)");
+ //}
+
+ [Test]
+ [Category("P1")]
+ [Description("Any GetType.")]
+ [Property("SPEC", "Tizen.NUI.Any.GetType M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyGetType()
+ {
+ tlog.Debug(tag, $"AnyGetType START");
+
+ using (Any any = new Any())
+ {
+ var testingTarget = new Any(any);
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ try
+ {
+ testingTarget.GetType();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AnyGetType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any Empty.")]
+ [Property("SPEC", "Tizen.NUI.Any.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyEmpty()
+ {
+ tlog.Debug(tag, $"AnyEmpty START");
+
+ using (Any any = new Any())
+ {
+ var testingTarget = new Any(any);
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ try
+ {
+ var result = testingTarget.Empty();
+ tlog.Debug(tag, "result :" + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AnyEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase constructor.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.AnyContainerBase C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBaseConstructor()
+ {
+ tlog.Debug(tag, $"AnyContainerBaseConstructor START");
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+
+ var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+ Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
+ Assert.IsInstanceOf<Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyContainerBaseConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase GetType.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.GetType M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBaseGetType()
+ {
+ tlog.Debug(tag, $"AnyContainerBaseGetType START");
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+
+ var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+ Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
+ Assert.IsInstanceOf<Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");
+
+ try
+ {
+ testingTarget.GetType();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyContainerBaseGetType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase mType.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.mType A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBasemType()
+ {
+ tlog.Debug(tag, $"AnyContainerBasemType START");
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+
+ var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+ Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
+ Assert.IsInstanceOf<Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");
+
+ tlog.Debug(tag, "mType : " + testingTarget.mType);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyContainerBasemType END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase mCloneFunc.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.mCloneFunc A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBasemCloneFunc()
+ {
+ tlog.Debug(tag, $"AnyContainerBasemCloneFunc START");
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+
+ var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+ Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
+ Assert.IsInstanceOf<Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");
+
+ tlog.Debug(tag, "mType : " + testingTarget.mCloneFunc);
+
+ testingTarget.mCloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new TextLabel().SwigCPtr.Handle);
+ tlog.Debug(tag, "mType : " + testingTarget.mCloneFunc);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyContainerBasemCloneFunc END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase mDeleteFunc.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.mDeleteFunc A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBasemDeleteFunc()
+ {
+ tlog.Debug(tag, $"AnyContainerBasemDeleteFunc START");
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+
+ var testingTarget = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+ Assert.IsNotNull(testingTarget, "Can't create success object AnyContainerBase");
+ Assert.IsInstanceOf<Any.AnyContainerBase>(testingTarget, "Should be an instance of AnyContainerBase type.");
+
+ tlog.Debug(tag, "mType : " + testingTarget.mDeleteFunc);
+
+ testingTarget.mDeleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new ImageView().SwigCPtr.Handle);
+ tlog.Debug(tag, "mType : " + testingTarget.mDeleteFunc);
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AnyContainerBasemDeleteFunc END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Any.AnyContainerBase mContainer.")]
+ [Property("SPEC", "Tizen.NUI.Any.AnyContainerBase.mContainer A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AnyContainerBasemContainer()
+ {
+ tlog.Debug(tag, $"AnyContainerBasemContainer START");
+
+ using (Any any = new Any())
+ {
+ var testingTarget = new Any(any);
+ Assert.IsNotNull(testingTarget, "Can't create success object Any");
+ Assert.IsInstanceOf<Any>(testingTarget, "Should be an instance of Any type.");
+
+ tlog.Debug(tag, "mContainer : " + testingTarget.mContainer);
+
+ SWIGTYPE_p_std__type_info type = new SWIGTYPE_p_std__type_info(new View().SwigCPtr.Handle);
+ SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase cloneFunc = new SWIGTYPE_p_f_r_q_const__Dali__Any__AnyContainerBase__p_Dali__Any__AnyContainerBase(new ImageView().SwigCPtr.Handle);
+ SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void deleteFunc = new SWIGTYPE_p_f_p_q_const__Dali__Any__AnyContainerBase__void(new TextLabel().SwigCPtr.Handle);
+ Any.AnyContainerBase container = new Any.AnyContainerBase(type, cloneFunc, deleteFunc);
+
+ try
+ {
+ testingTarget.mContainer = container;
+ tlog.Debug(tag, "mContainer : " + testingTarget.mContainer);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AnyContainerBasemContainer END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ArgumentHelper")]
+ public class InternalArgumentHelperTest
+ {
+ 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("ArgumentHelper RequireNotNull.")]
+ [Property("SPEC", "Tizen.NUI.Any.ArgumentHelper.RequireNotNull M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ArgumentHelperRequireNotNull()
+ {
+ tlog.Debug(tag, $"ArgumentHelperRequireNotNull START");
+
+ try
+ {
+ ArgumentHelper.RequireNotNull(null, "type");
+ }
+ catch (ArgumentException e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ tlog.Debug(tag, $"ArgumentHelperRequireNotNull END (OK)");
+ Assert.Pass("Caught ArgumentHelperRequireNotNull: Passed!");
+ }
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/AsyncImageLoader")]
+ public class InternalAsyncImageLoaderTest
+ {
+ private const string tag = "NUITEST";
+ private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader constructor.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.AsyncImageLoader C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderConstructor()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderConstructor START");
+
+ var testingTarget = new AsyncImageLoader();
+ Assert.IsNotNull(testingTarget, "Can't create success object AsyncImageLoader");
+ Assert.IsInstanceOf<AsyncImageLoader>(testingTarget, "Should be an instance of AsyncImageLoader type.");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"AsyncImageLoaderConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader constructor. With AsyncImageLoader.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.AsyncImageLoader C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderConstructorWithAsyncImageLoader()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderConstructorWithAsyncImageLoader START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ var testingTarget = new AsyncImageLoader(loader);
+ Assert.IsNotNull(testingTarget, "Can't create success object AsyncImageLoader");
+ Assert.IsInstanceOf<AsyncImageLoader>(testingTarget, "Should be an instance of AsyncImageLoader type.");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderConstructorWithAsyncImageLoader END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader Assign.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderAssign()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderAssign START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ var testingTarget = new AsyncImageLoader(loader);
+ Assert.IsNotNull(testingTarget, "Can't create success object AsyncImageLoader");
+ Assert.IsInstanceOf<AsyncImageLoader>(testingTarget, "Should be an instance of AsyncImageLoader type.");
+
+ try
+ {
+ testingTarget.Assign(loader);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderAssign END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader DownCast.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderDownCast()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderDownCast START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ AsyncImageLoader.DownCast(loader);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderDownCast END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader Load.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.Load M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderLoad()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderLoad START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.Load(url);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderLoad END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader Load. With dimensions.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.Load M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderLoadWithDimensions()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderLoadWithDimensions START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.Load(url, new Uint16Pair(100, 80));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderLoadWithDimensions END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader Load. With fittingMode.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.Load M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderLoadWithFittingMode()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderLoadWithFittingMode START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.Load(url, new Uint16Pair(100, 80), FittingModeType.Center, SamplingModeType.Linear, false);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderLoadWithFittingMode END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader Cancel.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.Cancel M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderCancel()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderCancel START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.Load(url, new Uint16Pair(100, 80), FittingModeType.Center, SamplingModeType.Linear, false);
+ loader.Cancel(0);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderCancel END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader CancelAll.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.CancelAll M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderCancelAll()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderCancelAll START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.Load(url, new Uint16Pair(100, 80), FittingModeType.Center, SamplingModeType.Linear, false);
+ loader.CancelAll();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderCancelAll END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AsyncImageLoader ImageLoadedSignal.")]
+ [Property("SPEC", "Tizen.NUI.AsyncImageLoader.ImageLoadedSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AsyncImageLoaderImageLoadedSignal()
+ {
+ tlog.Debug(tag, $"AsyncImageLoaderImageLoadedSignal START");
+
+ using (AsyncImageLoader loader = new AsyncImageLoader())
+ {
+ try
+ {
+ loader.ImageLoadedSignal();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"AsyncImageLoaderImageLoadedSignal END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/AuthenticationSignalType")]
+ public class InternalAuthenticationSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AuthenticationSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.AuthenticationSignalType.AuthenticationSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AuthenticationSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"AuthenticationSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new AuthenticationSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"AuthenticationSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AuthenticationSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.AuthenticationSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AuthenticationSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"AuthenticationSignalTypeEmpty START");
+
+ var testingTarget = new AuthenticationSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"AuthenticationSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AuthenticationSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.AuthenticationSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AuthenticationSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"AuthenticationSignalTypeGetConnectionCount START");
+
+ var testingTarget = new AuthenticationSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"AuthenticationSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AuthenticationSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.AuthenticationSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void AuthenticationSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"AuthenticationSignalTypeConnect START");
+
+ var testingTarget = new AuthenticationSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"AuthenticationSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("AuthenticationSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.AuthenticationSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void AuthenticationSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"AuthenticationSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new AuthenticationSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");
+
+ try
+ {
+ using (AutofillContainer container = new AutofillContainer("container"))
+ {
+ testingTarget.Emit(container);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"AuthenticationSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ContentReceivedSignalType")]
+ public class InternalContentReceivedSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ContentReceivedSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.ContentReceivedSignalType.ContentReceivedSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ContentReceivedSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"ContentReceivedSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ContentReceivedSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ContentReceivedSignalType>(testingTarget, "Should be an Instance of ContentReceivedSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ContentReceivedSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ContentReceivedSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.ContentReceivedSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ContentReceivedSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"ContentReceivedSignalTypeEmpty START");
+
+ var testingTarget = new ContentReceivedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ContentReceivedSignalType>(testingTarget, "Should be an Instance of ContentReceivedSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ContentReceivedSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ContentReceivedSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ContentReceivedSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ContentReceivedSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ContentReceivedSignalTypeGetConnectionCount START");
+
+ var testingTarget = new ContentReceivedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ContentReceivedSignalType>(testingTarget, "Should be an Instance of ContentReceivedSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ContentReceivedSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ContentReceivedSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.ContentReceivedSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ContentReceivedSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"ContentReceivedSignalTypeConnect START");
+
+ var testingTarget = new ContentReceivedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ContentReceivedSignalType>(testingTarget, "Should be an Instance of ContentReceivedSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ContentReceivedSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ContentReceivedSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.ContentReceivedSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void ContentReceivedSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"ContentReceivedSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new ContentReceivedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ContentReceivedSignalType>(testingTarget, "Should be an Instance of ContentReceivedSignalType!");
+
+ try
+ {
+ testingTarget.Emit("func1", "func2", "func3");
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ContentReceivedSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ControlKeySignal")]
+ public class InternalControlKeySignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ControlKeySignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ControlKeySignal.ControlKeySignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ControlKeySignalConstructor()
+ {
+ tlog.Debug(tag, $"ControlKeySignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ControlKeySignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ControlKeySignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ControlKeySignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ControlKeySignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ControlKeySignalEmpty()
+ {
+ tlog.Debug(tag, $"ControlKeySignalEmpty START");
+
+ var testingTarget = new ControlKeySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ControlKeySignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ControlKeySignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ControlKeySignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ControlKeySignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ControlKeySignalGetConnectionCount START");
+
+ var testingTarget = new ControlKeySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ControlKeySignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ControlKeySignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ControlKeySignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ControlKeySignalConnect()
+ {
+ tlog.Debug(tag, $"ControlKeySignalConnect START");
+
+ var testingTarget = new ControlKeySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ControlKeySignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ControlKeySignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ControlKeySignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void ControlKeySignalEmit()
+ {
+ tlog.Debug(tag, $"ControlKeySignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new ControlKeySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ControlKeySignal>(testingTarget, "Should be an Instance of ControlKeySignal!");
+
+ try
+ {
+ using (View view = new View())
+ {
+ using (Key key = new Key(view.SwigCPtr.Handle, false))
+ {
+ testingTarget.Emit(view, key);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ControlKeySignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/CustomActor")]
+ public class InternalCustomActorTest
+ {
+ 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("CustomActor constructor.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.CustomActor C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActorConstructor()
+ {
+ tlog.Debug(tag, $"CustomActorConstructor START");
+
+ var testingTarget = new CustomActor();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"CustomActorConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomActor constructor. With CustomActorImpl.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.CustomActor C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActorConstructorWithCustomActorImpl()
+ {
+ tlog.Debug(tag, $"CustomActorConstructorWithCustomActorImpl START");
+
+ using (View view = new View())
+ {
+ using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false))
+ {
+ var testingTarget = new CustomActor(actor.GetImplementation());
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"CustomActorConstructorWithCustomActorImpl END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomActor constructor. With CustomActor.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.CustomActor C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActorConstructorWithCustomActor()
+ {
+ tlog.Debug(tag, $"CustomActorConstructorWithCustomActor START");
+
+ using (View view = new View())
+ {
+ using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false))
+ {
+ var testingTarget = new CustomActor(actor);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"CustomActorConstructorWithCustomActor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomActor DownCast.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.DownCast M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActorDownCast()
+ {
+ tlog.Debug(tag, $"CustomActorDownCast START");
+
+ var testingTarget = new CustomActor();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ try
+ {
+ CustomActor.DownCast(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"CustomActorDownCast END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomActor GetImplementation.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.GetImplementation M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActoGetImplementation()
+ {
+ tlog.Debug(tag, $"CustomActoGetImplementation START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new CustomActor(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ try
+ {
+ testingTarget.GetImplementation();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"CustomActoGetImplementation END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomActor Assign.")]
+ [Property("SPEC", "Tizen.NUI.CustomActor.Assign M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomActoAssign()
+ {
+ tlog.Debug(tag, $"CustomActoAssign START");
+
+ var testingTarget = new CustomActor();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<CustomActor>(testingTarget, "Should be an Instance of CustomActor!");
+
+ using (View view = new View())
+ {
+ using (CustomActor actor = new CustomActor(view.SwigCPtr.Handle, false))
+ {
+ try
+ {
+ testingTarget.Assign(actor);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+ }
+ }
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"CustomActoAssign END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/CustomAlgorithmInterface")]
+ public class InternalCustomAlgorithmInterfaceTest
+ {
+ private const string tag = "NUITEST";
+
+ internal class MyCustomAlgorithmInterface : CustomAlgorithmInterface
+ {
+ public MyCustomAlgorithmInterface() : base()
+ { }
+
+ public override View GetNextFocusableView(View current, View proposed, View.FocusDirection direction)
+ {
+ return base.GetNextFocusableView(current, proposed, direction);
+ }
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomAlgorithmInterface constructor.")]
+ [Property("SPEC", "Tizen.NUI.CustomAlgorithmInterface.CustomAlgorithmInterface C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomAlgorithmInterfaceConstructor()
+ {
+ tlog.Debug(tag, $"CustomAlgorithmInterfaceConstructor START");
+
+ var testingTarget = new CustomAlgorithmInterface();
+ Assert.IsNotNull(testingTarget, "Can't create success object CustomAlgorithmInterface");
+ Assert.IsInstanceOf<CustomAlgorithmInterface>(testingTarget, "Should be an instance of CustomAlgorithmInterface type.");
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"CustomAlgorithmInterfaceConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("CustomAlgorithmInterface getCPtr.")]
+ [Property("SPEC", "Tizen.NUI.CustomAlgorithmInterface.getCPtr M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void CustomAlgorithmInterfaceGetCPtr()
+ {
+ tlog.Debug(tag, $"CustomAlgorithmInterfaceGetCPtr START");
+
+ var testingTarget = new CustomAlgorithmInterface();
+ Assert.IsNotNull(testingTarget, "Can't create success object CustomAlgorithmInterface");
+ Assert.IsInstanceOf<CustomAlgorithmInterface>(testingTarget, "Should be an instance of CustomAlgorithmInterface type.");
+
+ try
+ {
+ CustomAlgorithmInterface.getCPtr(testingTarget);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"CustomAlgorithmInterfaceGetCPtr END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("CustomAlgorithmInterface GetNextFocusableView.")]
+ //[Property("SPEC", "Tizen.NUI.CustomAlgorithmInterface.GetNextFocusableView M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void CustomAlgorithmGetNextFocusableView()
+ //{
+ // tlog.Debug(tag, $"CustomAlgorithmGetNextFocusableView START");
+
+ // var testingTarget = new MyCustomAlgorithmInterface();
+ // Assert.IsNotNull(testingTarget, "Can't create success object CustomAlgorithmInterface");
+ // Assert.IsInstanceOf<CustomAlgorithmInterface>(testingTarget, "Should be an instance of CustomAlgorithmInterface type.");
+
+ // using (View current = new View())
+ // {
+ // current.Size = new Size(2.0f, 4.0f);
+ // current.Position = new Position(0.0f, 0.0f);
+
+ // using (View proposed = new View())
+ // {
+ // proposed.Size = new Size(3.0f, 4.0f);
+ // proposed.Position = new Position(0.0f, 4.0f);
+
+ // try
+ // {
+ // testingTarget.GetNextFocusableView(current, proposed, View.FocusDirection.Down);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception : Failed!");
+ // }
+ // }
+ // }
+
+ // testingTarget.Dispose();
+ // tlog.Debug(tag, $"CustomAlgorithmGetNextFocusableView END (OK)");
+ //}
+ }
+}
--- /dev/null
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using Tizen.NUI;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/Disposable")]
+ public class DisposableTests
+ {
+ private const string tag = "NUITEST";
+
+ [SetUp]
+ public void Init()
+ {
+ Tizen.Log.Info(tag, " Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ Tizen.Log.Info(tag, " Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Create a Disposable object.Check whether object is successfully created or not.")]
+ [Property("SPEC", "Tizen.NUI.Disposable.Disposable C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void Disposable_INIT()
+ {
+ tlog.Debug(tag, $"DisposableConstructor START");
+
+ var disposable = new Disposable();
+ Assert.IsNotNull(disposable, "Can't create success object Disposable");
+ Assert.IsInstanceOf<Disposable>(disposable, "Should be an instance of Disposable type.");
+
+ tlog.Debug(tag, $"DisposableConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the Disposable.")]
+ [Property("SPEC", "Tizen.NUI.Disposable.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MCST")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void Dispose_TEST()
+ {
+ tlog.Debug(tag, $"DisposableWithDisposable START");
+
+ try
+ {
+ Disposable disposable = new Disposable();
+ disposable.Dispose();
+ }
+ catch (Exception e)
+ {
+ tlog.Error(tag, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+
+ tlog.Debug(tag, $"DisposableWithDisposable END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the Disposable.")]
+ [Property("SPEC", "Tizen.NUI.Disposable.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MCST")]
+ [Property("COVPARAM", "DisposeTypes")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void Dispose_Implicit_TEST_WITH_DISPOSETYPE()
+ {
+ tlog.Debug(tag, $"DisposableImplicit START");
+
+ try
+ {
+ MyDisposable myDisposable = new MyDisposable();
+ myDisposable.DisposeImplicit();
+ }
+ catch (Exception e)
+ {
+ tlog.Error(tag, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+
+ tlog.Debug(tag, $"DisposableImplicit END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Dispose, try to dispose the Disposable.")]
+ [Property("SPEC", "Tizen.NUI.Disposable.Dispose M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MCST")]
+ [Property("COVPARAM", "DisposeTypes")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void Dispose_Explicit_TEST_WITH_DISPOSETYPE()
+ {
+ tlog.Debug(tag, $"DisposableExplicit START");
+
+ try
+ {
+ MyDisposable myDisposable = new MyDisposable();
+ myDisposable.DisposeExplicit();
+ }
+ catch (Exception e)
+ {
+ tlog.Error(tag, "Caught Exception" + e.ToString());
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+
+ tlog.Debug(tag, $"DisposableExplicit END (OK)");
+ }
+ }
+
+ public class MyDisposable : Disposable
+ {
+ public void DisposeImplicit()
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+
+ public void DisposeExplicit()
+ {
+ Dispose(DisposeTypes.Explicit);
+ }
+
+ public bool Disposed
+ {
+ get
+ {
+ return disposed;
+ }
+ set
+ {
+ disposed = value;
+ }
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/FloatSignal")]
+ public class InternalFloatSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FloatSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.FloatSignal.FloatSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FloatSignalConstructor()
+ {
+ tlog.Debug(tag, $"FloatSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new FloatSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FloatSignal>(testingTarget, "Should be an Instance of FloatSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"FloatSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FloatSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.FloatSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FloatSignalEmpty()
+ {
+ tlog.Debug(tag, $"FloatSignalEmpty START");
+
+ var testingTarget = new FloatSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FloatSignal>(testingTarget, "Should be an Instance of FloatSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FloatSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FloatSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.FloatSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FloatSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"FloatSignalGetConnectionCount START");
+
+ var testingTarget = new FloatSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FloatSignal>(testingTarget, "Should be an Instance of FloatSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FloatSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FloatSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.FloatSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FloatSignalConnect()
+ {
+ tlog.Debug(tag, $"FloatSignalConnect START");
+
+ var testingTarget = new FloatSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FloatSignal>(testingTarget, "Should be an Instance of FloatSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FloatSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FloatSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.FloatSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void FloatSignalEmit()
+ {
+ tlog.Debug(tag, $"FloatSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new FloatSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FloatSignal>(testingTarget, "Should be an Instance of FloatSignal!");
+
+ try
+ {
+ testingTarget.Emit(3.0f);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FloatSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/FocusChangedSignal")]
+ public class InternalFocusChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.FocusChangedSignal.FocusChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"FocusChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new FocusChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusChangedSignal>(testingTarget, "Should be an Instance of FocusChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"FocusChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.FocusChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"FocusChangedSignalEmpty START");
+
+ var testingTarget = new FocusChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusChangedSignal>(testingTarget, "Should be an Instance of FocusChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.FocusChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"FocusChangedSignalGetConnectionCount START");
+
+ var testingTarget = new FocusChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusChangedSignal>(testingTarget, "Should be an Instance of FocusChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.FocusChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"FocusChangedSignalConnect START");
+
+ var testingTarget = new FocusChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusChangedSignal>(testingTarget, "Should be an Instance of FocusChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusChangedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusChangedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.FocusChangedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void FocusChangedSignalEmit()
+ {
+ tlog.Debug(tag, $"FocusChangedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new FocusChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusChangedSignal>(testingTarget, "Should be an Instance of FocusChangedSignal!");
+
+ try
+ {
+ using (View current = new View())
+ {
+ using (View goal = new View())
+ {
+ testingTarget.Emit(current, goal);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusChangedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/FocusGroupChangedSignal")]
+ public class InternalFocusGroupChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusGroupChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.FocusGroupChangedSignal.FocusGroupChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusGroupChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"FocusGroupChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new FocusGroupChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusGroupChangedSignal>(testingTarget, "Should be an Instance of FocusGroupChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"FocusGroupChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusGroupChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.FocusGroupChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusGroupChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"FocusGroupChangedSignalEmpty START");
+
+ var testingTarget = new FocusGroupChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusGroupChangedSignal>(testingTarget, "Should be an Instance of FocusGroupChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusGroupChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusGroupChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.FocusGroupChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusGroupChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"FocusGroupChangedSignalGetConnectionCount START");
+
+ var testingTarget = new FocusGroupChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusGroupChangedSignal>(testingTarget, "Should be an Instance of FocusGroupChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusGroupChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusGroupChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.FocusGroupChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void FocusGroupChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"FocusGroupChangedSignalConnect START");
+
+ var testingTarget = new FocusGroupChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusGroupChangedSignal>(testingTarget, "Should be an Instance of FocusGroupChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusGroupChangedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("FocusGroupChangedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.FocusGroupChangedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void FocusGroupChangedSignalEmit()
+ {
+ tlog.Debug(tag, $"FocusGroupChangedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new FocusGroupChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<FocusGroupChangedSignal>(testingTarget, "Should be an Instance of FocusGroupChangedSignal!");
+
+ try
+ {
+ using (View current = new View())
+ {
+ testingTarget.Emit(current, false);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"FocusGroupChangedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/GLWindowResizedSignal")]
+ public class InternalGLWindowResizedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GLWindowResizedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.GLWindowResizedSignal.GLWindowResizedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GLWindowResizedSignalConstructor()
+ {
+ tlog.Debug(tag, $"GLWindowResizedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new GLWindowResizedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"GLWindowResizedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GLWindowResizedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.GLWindowResizedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GLWindowResizedSignalEmpty()
+ {
+ tlog.Debug(tag, $"GLWindowResizedSignalEmpty START");
+
+ var testingTarget = new GLWindowResizedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"GLWindowResizedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GLWindowResizedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.GLWindowResizedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GLWindowResizedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"GLWindowResizedSignalGetConnectionCount START");
+
+ var testingTarget = new GLWindowResizedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"GLWindowResizedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GLWindowResizedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.GLWindowResizedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void GLWindowResizedSignalConnect()
+ {
+ tlog.Debug(tag, $"GLWindowResizedSignalConnect START");
+
+ var testingTarget = new GLWindowResizedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"GLWindowResizedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("GLWindowResizedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.GLWindowResizedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void GLWindowResizedSignalEmit()
+ {
+ tlog.Debug(tag, $"GLWindowResizedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new GLWindowResizedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<GLWindowResizedSignal>(testingTarget, "Should be an Instance of GLWindowResizedSignal!");
+
+ try
+ {
+ using (Size2D size = new Size2D(20, 30))
+ {
+ testingTarget.Emit(size);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"GLWindowResizedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/HoverSignal")]
+ public class InternalHoverSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("HoverSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.HoverSignal.HoverSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverSignalConstructor()
+ {
+ tlog.Debug(tag, $"HoverSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new HoverSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"HoverSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("HoverSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.HoverSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverSignalEmpty()
+ {
+ tlog.Debug(tag, $"HoverSignalEmpty START");
+
+ var testingTarget = new HoverSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"HoverSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("HoverSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.HoverSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"HoverSignalGetConnectionCount START");
+
+ var testingTarget = new HoverSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"HoverSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("HoverSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.HoverSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void HoverSignalConnect()
+ {
+ tlog.Debug(tag, $"HoverSignalConnect START");
+
+ var testingTarget = new HoverSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"HoverSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("HoverSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.HoverSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void HoverSignalEmit()
+ {
+ tlog.Debug(tag, $"HoverSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new HoverSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<HoverSignal>(testingTarget, "Should be an Instance of HoverSignal!");
+
+ try
+ {
+ using (View view = new View())
+ {
+ using (Hover hover = new Hover())
+ {
+ testingTarget.Emit(view, hover);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"HoverSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/InterceptTouchSignal")]
+ public class InternalInterceptTouchSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("InterceptTouchSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.InterceptTouchSignal.InterceptTouchSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void InterceptTouchSignalConstructor()
+ {
+ tlog.Debug(tag, $"InterceptTouchSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new InterceptTouchSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"InterceptTouchSignalConstructor END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("InterceptTouchSignal Empty.")]
+ //[Property("SPEC", "Tizen.NUI.InterceptTouchSignal.Empty M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void InterceptTouchSignalEmpty()
+ //{
+ // tlog.Debug(tag, $"InterceptTouchSignalEmpty START");
+
+ // var testingTarget = new InterceptTouchSignal();
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
+
+ // try
+ // {
+ // testingTarget.Empty();
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+
+ // tlog.Debug(tag, $"InterceptTouchSignalEmpty END (OK)");
+ //}
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("InterceptTouchSignal GetConnectionCount.")]
+ //[Property("SPEC", "Tizen.NUI.InterceptTouchSignal.GetConnectionCount M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void InterceptTouchSignalGetConnectionCount()
+ //{
+ // tlog.Debug(tag, $"InterceptTouchSignalGetConnectionCount START");
+
+ // var testingTarget = new InterceptTouchSignal();
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
+
+ // try
+ // {
+ // testingTarget.GetConnectionCount();
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+
+ // tlog.Debug(tag, $"InterceptTouchSignalGetConnectionCount END (OK)");
+ //}
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("InterceptTouchSignal Connect.")]
+ //[Property("SPEC", "Tizen.NUI.InterceptTouchSignal.Connect M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void InterceptTouchSignalConnect()
+ //{
+ // tlog.Debug(tag, $"InterceptTouchSignalConnect START");
+
+ // var testingTarget = new InterceptTouchSignal();
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
+
+ // try
+ // {
+ // dummyCallback callback = OnDummyCallback;
+ // testingTarget.Connect(callback);
+ // testingTarget.Disconnect(callback);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+
+ // tlog.Debug(tag, $"InterceptTouchSignalConnect END (OK)");
+ //}
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("InterceptTouchSignal Emit.")]
+ //[Property("SPEC", "Tizen.NUI.InterceptTouchSignal.Emit M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //[Obsolete]
+ //public void InterceptTouchSignalEmit()
+ //{
+ // tlog.Debug(tag, $"InterceptTouchSignalEmit START");
+ // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ // var testingTarget = new InterceptTouchSignal();
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<InterceptTouchSignal>(testingTarget, "Should be an Instance of InterceptTouchSignal!");
+
+ // try
+ // {
+ // using (Touch touch = new Touch())
+ // {
+ // testingTarget.Emit(touch);
+ // }
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+
+ // tlog.Debug(tag, $"InterceptTouchSignalEmit END (OK)");
+ //}
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyEventSignal")]
+ public class InternalKeyEventSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyEventSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyEventSignal.KeyEventSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyEventSignalConstructor()
+ {
+ tlog.Debug(tag, $"KeyEventSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyEventSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyEventSignal>(testingTarget, "Should be an Instance of KeyEventSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyEventSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyEventSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyEventSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyEventSignalEmpty()
+ {
+ tlog.Debug(tag, $"KeyEventSignalEmpty START");
+
+ var testingTarget = new KeyEventSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyEventSignal>(testingTarget, "Should be an Instance of KeyEventSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyEventSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyEventSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyEventSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyEventSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyEventSignalGetConnectionCount START");
+
+ var testingTarget = new KeyEventSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyEventSignal>(testingTarget, "Should be an Instance of KeyEventSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyEventSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyEventSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.KeyEventSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyEventSignalConnect()
+ {
+ tlog.Debug(tag, $"KeyEventSignalConnect START");
+
+ var testingTarget = new KeyEventSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyEventSignal>(testingTarget, "Should be an Instance of KeyEventSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyEventSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyEventSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.KeyEventSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void KeyEventSignalEmit()
+ {
+ tlog.Debug(tag, $"KeyEventSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new KeyEventSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyEventSignal>(testingTarget, "Should be an Instance of KeyEventSignal!");
+
+ try
+ {
+ using (Key key = new Key())
+ {
+ testingTarget.Emit(key);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyEventSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyInputFocusSignal")]
+ public class InternalKeyInputFocusSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyInputFocusSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.KeyInputFocusSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyInputFocusSignalConstructor()
+ {
+ tlog.Debug(tag, $"KeyInputFocusSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyInputFocusSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyInputFocusSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyInputFocusSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyInputFocusSignalEmpty()
+ {
+ tlog.Debug(tag, $"KeyInputFocusSignalEmpty START");
+
+ var testingTarget = new KeyInputFocusSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyInputFocusSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyInputFocusSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyInputFocusSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyInputFocusSignalGetConnectionCount START");
+
+ var testingTarget = new KeyInputFocusSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyInputFocusSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyInputFocusSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyInputFocusSignalConnect()
+ {
+ tlog.Debug(tag, $"KeyInputFocusSignalConnect START");
+
+ var testingTarget = new KeyInputFocusSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyInputFocusSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyInputFocusSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.KeyInputFocusSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void KeyInputFocusSignalEmit()
+ {
+ tlog.Debug(tag, $"KeyInputFocusSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new KeyInputFocusSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyInputFocusSignal>(testingTarget, "Should be an Instance of KeyInputFocusSignal!");
+
+ try
+ {
+ using (View view = new View())
+ {
+ testingTarget.Emit(view);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyInputFocusSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyboardEventSignalType")]
+ public class InternalKeyboardEventSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardEventSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardEventSignalType.KeyboardEventSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardEventSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"KeyboardEventSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardEventSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardEventSignalType>(testingTarget, "Should be an Instance of KeyboardEventSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardEventSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardEventSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardEventSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardEventSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"KeyboardEventSignalTypeEmpty START");
+
+ var testingTarget = new KeyboardEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardEventSignalType>(testingTarget, "Should be an Instance of KeyboardEventSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardEventSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardEventSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardEventSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardEventSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyboardEventSignalTypeGetConnectionCount START");
+
+ var testingTarget = new KeyboardEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardEventSignalType>(testingTarget, "Should be an Instance of KeyboardEventSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardEventSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardEventSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardEventSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardEventSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"KeyboardEventSignalTypeConnect START");
+
+ var testingTarget = new KeyboardEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardEventSignalType>(testingTarget, "Should be an Instance of KeyboardEventSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardEventSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardEventSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardEventSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void KeyboardEventSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"KeyboardEventSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new KeyboardEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardEventSignalType>(testingTarget, "Should be an Instance of KeyboardEventSignalType!");
+
+ try
+ {
+ using (InputMethodContext context = new InputMethodContext())
+ {
+ using (InputMethodContext.EventData data = new InputMethodContext.EventData())
+ {
+ testingTarget.Emit(context, data);
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardEventSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyboardRepeatSettingsChangedSignal")]
+ public class InternalKeyboardRepeatSettingsChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardRepeatSettingsChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardRepeatSettingsChangedSignal.KeyboardRepeatSettingsChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardRepeatSettingsChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardRepeatSettingsChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardRepeatSettingsChangedSignal>(testingTarget, "Should be an Instance of KeyboardRepeatSettingsChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardRepeatSettingsChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardRepeatSettingsChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardRepeatSettingsChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalEmpty START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardRepeatSettingsChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardRepeatSettingsChangedSignal>(testingTarget, "Should be an Instance of KeyboardRepeatSettingsChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardRepeatSettingsChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardRepeatSettingsChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardRepeatSettingsChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalGetConnectionCount START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardRepeatSettingsChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardRepeatSettingsChangedSignal>(testingTarget, "Should be an Instance of KeyboardRepeatSettingsChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalGetConnectionCount END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("KeyboardRepeatSettingsChangedSignal Connect.")]
+ //[Property("SPEC", "Tizen.NUI.KeyboardRepeatSettingsChangedSignal.Connect M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void KeyboardRepeatSettingsChangedSignalConnect()
+ //{
+ // tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalConnect START");
+
+ // using (View view = new View())
+ // {
+ // var testingTarget = new KeyboardRepeatSettingsChangedSignal(view.SwigCPtr.Handle, false);
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<KeyboardRepeatSettingsChangedSignal>(testingTarget, "Should be an Instance of KeyboardRepeatSettingsChangedSignal!");
+
+ // try
+ // {
+ // dummyCallback callback = OnDummyCallback;
+ // testingTarget.Connect(callback);
+ // testingTarget.Disconnect(callback);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+ // }
+
+ // tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalConnect END (OK)");
+ //}
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("KeyboardRepeatSettingsChangedSignal Emit.")]
+ //[Property("SPEC", "Tizen.NUI.KeyboardRepeatSettingsChangedSignal.Emit M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //[Obsolete]
+ //public void KeyboardRepeatSettingsChangedSignalEmit()
+ //{
+ // tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalEmit START");
+ // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ // using (View view = new View())
+ // {
+ // var testingTarget = new KeyboardRepeatSettingsChangedSignal(view.SwigCPtr.Handle, false);
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<KeyboardRepeatSettingsChangedSignal>(testingTarget, "Should be an Instance of KeyboardRepeatSettingsChangedSignal!");
+
+ // try
+ // {
+ // testingTarget.Emit();
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+ // }
+
+ // tlog.Debug(tag, $"KeyboardRepeatSettingsChangedSignalEmit END (OK)");
+ //}
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyboardResizedSignalType")]
+ public class InternalKeyboardResizedSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardResizedSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardResizedSignalType.KeyboardResizedSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardResizedSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardResizedSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardResizedSignalType>(testingTarget, "Should be an Instance of KeyboardResizedSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardResizedSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardResizedSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardResizedSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeEmpty START");
+
+ var testingTarget = new KeyboardResizedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardResizedSignalType>(testingTarget, "Should be an Instance of KeyboardResizedSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardResizedSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardResizedSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardResizedSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeGetConnectionCount START");
+
+ var testingTarget = new KeyboardResizedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardResizedSignalType>(testingTarget, "Should be an Instance of KeyboardResizedSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardResizedSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardResizedSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardResizedSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeConnect START");
+
+ var testingTarget = new KeyboardResizedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardResizedSignalType>(testingTarget, "Should be an Instance of KeyboardResizedSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardResizedSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardResizedSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void KeyboardResizedSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new KeyboardResizedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardResizedSignalType>(testingTarget, "Should be an Instance of KeyboardResizedSignalType!");
+
+ try
+ {
+ testingTarget.Emit(1);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardResizedSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/KeyboardTypeSignalType")]
+ public class KeyboardTypeSignalTypeTests
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.KeyboardTypeSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardTypeSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new KeyboardTypeSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(testingTarget, "Should be an Instance of KeyboardTypeSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardTypeSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeEmpty START");
+
+ var testingTarget = new KeyboardTypeSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(testingTarget, "Should be an Instance of KeyboardTypeSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardTypeSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeGetConnectionCount START");
+
+ var testingTarget = new KeyboardTypeSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(testingTarget, "Should be an Instance of KeyboardTypeSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void KeyboardTypeSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeConnect START");
+
+ var testingTarget = new KeyboardTypeSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(testingTarget, "Should be an Instance of KeyboardTypeSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("KeyboardTypeSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.KeyboardTypeSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void KeyboardTypeSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new KeyboardTypeSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<KeyboardTypeSignalType>(testingTarget, "Should be an Instance of KeyboardTypeSignalType!");
+
+ try
+ {
+ testingTarget.Emit(new InputMethodContext.KeyboardType());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"KeyboardTypeSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/LanguageChangedSignalType")]
+ public class InternalLanguageChangedSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LanguageChangedSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.LanguageChangedSignalType.LanguageChangedSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LanguageChangedSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"LanguageChangedSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new LanguageChangedSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LanguageChangedSignalType>(testingTarget, "Should be an Instance of LanguageChangedSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"LanguageChangedSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LanguageChangedSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.LanguageChangedSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LanguageChangedSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"LanguageChangedSignalTypeEmpty START");
+
+ var testingTarget = new LanguageChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LanguageChangedSignalType>(testingTarget, "Should be an Instance of LanguageChangedSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LanguageChangedSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LanguageChangedSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.LanguageChangedSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LanguageChangedSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"LanguageChangedSignalTypeGetConnectionCount START");
+
+ var testingTarget = new LanguageChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LanguageChangedSignalType>(testingTarget, "Should be an Instance of LanguageChangedSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LanguageChangedSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LanguageChangedSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.LanguageChangedSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LanguageChangedSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"LanguageChangedSignalTypeConnect START");
+
+ var testingTarget = new LanguageChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LanguageChangedSignalType>(testingTarget, "Should be an Instance of LanguageChangedSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LanguageChangedSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LanguageChangedSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.LanguageChangedSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LanguageChangedSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"LanguageChangedSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new LanguageChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LanguageChangedSignalType>(testingTarget, "Should be an Instance of LanguageChangedSignalType!");
+
+ try
+ {
+ testingTarget.Emit(1);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LanguageChangedSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ListEventSignalType")]
+ public class InternalListEventSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ListEventSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.ListEventSignalType.ListEventSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ListEventSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"ListEventSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ListEventSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ListEventSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ListEventSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.ListEventSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ListEventSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"ListEventSignalTypeEmpty START");
+
+ var testingTarget = new ListEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ListEventSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ListEventSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ListEventSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ListEventSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount START");
+
+ var testingTarget = new ListEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ListEventSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.ListEventSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ListEventSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"ListEventSignalTypeConnect START");
+
+ var testingTarget = new ListEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ListEventSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ListEventSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.ListEventSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ListEventSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"ListEventSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ListEventSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
+
+ try
+ {
+ testingTarget.Emit(view);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ListEventSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/LongPressGestureDetectedSignal")]
+ public class InternalLongPressGestureDetectedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetectedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetectedSignal.LongPressGestureDetectedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectedSignalConstructor()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new LongPressGestureDetectedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LongPressGestureDetectedSignal>(testingTarget, "Should be an Instance of LongPressGestureDetectedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetectedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetectedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectedSignalEmpty()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalEmpty START");
+
+ var testingTarget = new LongPressGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LongPressGestureDetectedSignal>(testingTarget, "Should be an Instance of LongPressGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetectedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetectedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalGetConnectionCount START");
+
+ var testingTarget = new LongPressGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LongPressGestureDetectedSignal>(testingTarget, "Should be an Instance of LongPressGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetectedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetectedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectedSignalConnect()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalConnect START");
+
+ var testingTarget = new LongPressGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LongPressGestureDetectedSignal>(testingTarget, "Should be an Instance of LongPressGestureDetectedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LongPressGestureDetectedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.LongPressGestureDetectedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LongPressGestureDetectedSignalEmit()
+ {
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new LongPressGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LongPressGestureDetectedSignal>(testingTarget, "Should be an Instance of LongPressGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Emit(view, new LongPressGesture(view.SwigCPtr.Handle, false));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"LongPressGestureDetectedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/LowBatterySignalType")]
+ public class InternalLowBatterySignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowBatterySignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.LowBatterySignalType.LowBatterySignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowBatterySignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"LowBatterySignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new LowBatterySignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowBatterySignalType>(testingTarget, "Should be an Instance of LowBatterySignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"LowBatterySignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowBatterySignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.LowBatterySignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowBatterySignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"LowBatterySignalTypeEmpty START");
+
+ var testingTarget = new LowBatterySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowBatterySignalType>(testingTarget, "Should be an Instance of LowBatterySignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowBatterySignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowBatterySignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.LowBatterySignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowBatterySignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"LowBatterySignalTypeGetConnectionCount START");
+
+ var testingTarget = new LowBatterySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowBatterySignalType>(testingTarget, "Should be an Instance of LowBatterySignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowBatterySignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowBatterySignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.LowBatterySignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowBatterySignalTypeConnect()
+ {
+ tlog.Debug(tag, $"LowBatterySignalTypeConnect START");
+
+ var testingTarget = new LowBatterySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowBatterySignalType>(testingTarget, "Should be an Instance of LowBatterySignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowBatterySignalTypeConnect END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/LowMemorySignalType")]
+ public class InternalLowMemorySignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowMemorySignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.LowMemorySignalType.LowMemorySignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowMemorySignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"LowMemorySignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new LowMemorySignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowMemorySignalType>(testingTarget, "Should be an Instance of LowMemorySignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"LowMemorySignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowMemorySignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.LowMemorySignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowMemorySignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"LowMemorySignalTypeEmpty START");
+
+ var testingTarget = new LowMemorySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowMemorySignalType>(testingTarget, "Should be an Instance of LowMemorySignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowMemorySignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowMemorySignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.LowMemorySignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowMemorySignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"LowMemorySignalTypeGetConnectionCount START");
+
+ var testingTarget = new LowMemorySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowMemorySignalType>(testingTarget, "Should be an Instance of LowMemorySignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowMemorySignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("LowMemorySignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.LowMemorySignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void LowMemorySignalTypeConnect()
+ {
+ tlog.Debug(tag, $"LowMemorySignalTypeConnect START");
+
+ var testingTarget = new LowMemorySignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<LowMemorySignalType>(testingTarget, "Should be an Instance of LowMemorySignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"LowMemorySignalTypeConnect END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/NUIEventType")]
+ public class NUIEventTypeTests
+ {
+ 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("NUIEventType constructor.")]
+ [Property("SPEC", "Tizen.NUI.NUIEventType.NUIEventType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void NUIEventType_INIT()
+ {
+ tlog.Debug(tag, $"NUIEventTypeConstructor START");
+
+ var nuiEventType = new NUIEventType("TimeTick");
+
+ Assert.IsNotNull(nuiEventType, "Can't create success object NUIEventType");
+ Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
+
+ tlog.Debug(tag, $"NUIEventTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("NUIEventType TimeTick.")]
+ [Property("SPEC", "Tizen.NUI.NUIEventType.TimeTick A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TimeTick_GET_VALUE()
+ {
+ tlog.Debug(tag, $"NUIEventTypeTimeTick START");
+
+ var nuiEventType = NUIEventType.TimeTick;
+ Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
+ Assert.AreEqual(NUIEventType.TimeTick, nuiEventType, "Should be equal!");
+
+ tlog.Debug(tag, $"NUIEventTypeTimeTick END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("NUIEventType AmbientTick.")]
+ [Property("SPEC", "Tizen.NUI.NUIEventType.AmbientTick A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void NUIEventTypeAmbientTick()
+ {
+ tlog.Debug(tag, $"NUIEventTypeAmbientTick START");
+
+ var nuiEventType = NUIEventType.AmbientTick;
+ Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
+ Assert.AreEqual(NUIEventType.AmbientTick, nuiEventType, "Should be equal!");
+
+ tlog.Debug(tag, $"NUIEventTypeAmbientTick END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("NUIEventType AmbientChanged.")]
+ [Property("SPEC", "Tizen.NUI.NUIEventType.AmbientChanged A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void NUIEventTypeAmbientChanged()
+ {
+ tlog.Debug(tag, $"NUIEventTypeAmbientChanged START");
+
+ var nuiEventType = NUIEventType.AmbientChanged;
+ Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
+ Assert.AreEqual(NUIEventType.AmbientChanged, nuiEventType, "Should be equal!");
+
+ tlog.Debug(tag, $"NUIEventTypeAmbientChanged END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("NUIEventType implicit string.")]
+ [Property("SPEC", "Tizen.NUI.NUIEventType.implicit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("COVPARAM", "string")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void NUIEventTypeImplicit()
+ {
+ tlog.Debug(tag, $"NUIEventTypeImplicit START");
+
+ NUIEventType nuiEventType = "TimeTick";
+ Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
+
+ tlog.Debug(tag, $"NUIEventTypeImplicit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ObjectCreatedSignal")]
+ public class InternalObjectCreatedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectCreatedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ObjectCreatedSignal.ObjectCreatedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectCreatedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ObjectCreatedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ObjectCreatedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectCreatedSignal>(testingTarget, "Should be an Instance of ObjectCreatedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ObjectCreatedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectCreatedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ObjectCreatedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectCreatedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ObjectCreatedSignalEmpty START");
+
+ var testingTarget = new ObjectCreatedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectCreatedSignal>(testingTarget, "Should be an Instance of ObjectCreatedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectCreatedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectCreatedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ObjectCreatedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectCreatedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ObjectCreatedSignalGetConnectionCount START");
+
+ var testingTarget = new ObjectCreatedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectCreatedSignal>(testingTarget, "Should be an Instance of ObjectCreatedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectCreatedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectCreatedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ObjectCreatedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectCreatedSignalConnect()
+ {
+ tlog.Debug(tag, $"ObjectCreatedSignalConnect START");
+
+ var testingTarget = new ObjectCreatedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectCreatedSignal>(testingTarget, "Should be an Instance of ObjectCreatedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectCreatedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectCreatedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ObjectCreatedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectCreatedSignalEmit()
+ {
+ tlog.Debug(tag, $"ObjectCreatedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ObjectCreatedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectCreatedSignal>(testingTarget, "Should be an Instance of ObjectCreatedSignal!");
+
+ try
+ {
+ using (RefObject obj = new RefObject(view.SwigCPtr.Handle, false))
+ {
+ testingTarget.Emit(view);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ObjectCreatedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ObjectDestroyedSignal")]
+ public class InternalObjectDestroyedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectDestroyedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ObjectDestroyedSignal.ObjectDestroyedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectDestroyedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ObjectDestroyedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ObjectDestroyedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectDestroyedSignal>(testingTarget, "Should be an Instance of ObjectDestroyedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ObjectDestroyedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectDestroyedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ObjectDestroyedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectDestroyedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ObjectDestroyedSignalEmpty START");
+
+ var testingTarget = new ObjectDestroyedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectDestroyedSignal>(testingTarget, "Should be an Instance of ObjectDestroyedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectDestroyedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectDestroyedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ObjectDestroyedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectDestroyedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ObjectDestroyedSignalGetConnectionCount START");
+
+ var testingTarget = new ObjectDestroyedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectDestroyedSignal>(testingTarget, "Should be an Instance of ObjectDestroyedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectDestroyedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectDestroyedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ObjectDestroyedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectDestroyedSignalConnect()
+ {
+ tlog.Debug(tag, $"ObjectDestroyedSignalConnect START");
+
+ var testingTarget = new ObjectDestroyedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectDestroyedSignal>(testingTarget, "Should be an Instance of ObjectDestroyedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ObjectDestroyedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ObjectDestroyedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ObjectDestroyedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ObjectDestroyedSignalEmit()
+ {
+ tlog.Debug(tag, $"ObjectDestroyedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ObjectDestroyedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ObjectDestroyedSignal>(testingTarget, "Should be an Instance of ObjectDestroyedSignal!");
+
+ try
+ {
+ using (RefObject obj = new RefObject(view.SwigCPtr.Handle, false))
+ {
+ testingTarget.Emit(obj);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ObjectDestroyedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/PanGestureDetectedSignal")]
+ public class InternalPanGestureDetectedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PanGestureDetectedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetectedSignal.PanGestureDetectedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectedSignalConstructor()
+ {
+ tlog.Debug(tag, $"PanGestureDetectedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new PanGestureDetectedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"PanGestureDetectedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PanGestureDetectedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetectedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectedSignalEmpty()
+ {
+ tlog.Debug(tag, $"PanGestureDetectedSignalEmpty START");
+
+ var testingTarget = new PanGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PanGestureDetectedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetectedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"PanGestureDetectedSignalGetConnectionCount START");
+
+ var testingTarget = new PanGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PanGestureDetectedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetectedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectedSignalConnect()
+ {
+ tlog.Debug(tag, $"PanGestureDetectedSignalConnect START");
+
+ var testingTarget = new PanGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PanGestureDetectedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PanGestureDetectedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.PanGestureDetectedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PanGestureDetectedSignalEmit()
+ {
+ tlog.Debug(tag, $"PanGestureDetectedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new PanGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Emit(view, new PanGesture(view.SwigCPtr.Handle, false));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"PanGestureDetectedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/PinchGestureDetectedSignal")]
+ public class InternalPinchGestureDetectedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetectedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetectedSignal.PinchGestureDetectedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectedSignalConstructor()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new PinchGestureDetectedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"PinchGestureDetectedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetectedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetectedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectedSignalEmpty()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectedSignalEmpty START");
+
+ var testingTarget = new PinchGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetectedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetectedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectedSignalGetConnectionCount START");
+
+ var testingTarget = new PinchGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetectedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetectedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectedSignalConnect()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectedSignalConnect START");
+
+ var testingTarget = new PinchGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PinchGestureDetectedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PinchGestureDetectedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.PinchGestureDetectedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PinchGestureDetectedSignalEmit()
+ {
+ tlog.Debug(tag, $"PinchGestureDetectedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new PinchGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Emit(view, new PinchGesture(view.SwigCPtr.Handle, false));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"PinchGestureDetectedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/PreFocusChangeSignal")]
+ public class InternalPreFocusChangeSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private IntPtr OnDummyCallback(IntPtr current, IntPtr proposed, View.FocusDirection direction)
+ {
+ return proposed;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PreFocusChangeSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.PreFocusChangeSignal.PreFocusChangeSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PreFocusChangeSignalConstructor()
+ {
+ tlog.Debug(tag, $"PreFocusChangeSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new PreFocusChangeSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PreFocusChangeSignal>(testingTarget, "Should be an Instance of PreFocusChangeSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"PreFocusChangeSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PreFocusChangeSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.PreFocusChangeSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PreFocusChangeSignalEmpty()
+ {
+ tlog.Debug(tag, $"PreFocusChangeSignalEmpty START");
+
+ var testingTarget = new PreFocusChangeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PreFocusChangeSignal>(testingTarget, "Should be an Instance of PreFocusChangeSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PreFocusChangeSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PreFocusChangeSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.PreFocusChangeSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PreFocusChangeSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"PreFocusChangeSignalGetConnectionCount START");
+
+ var testingTarget = new PreFocusChangeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PreFocusChangeSignal>(testingTarget, "Should be an Instance of PreFocusChangeSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PreFocusChangeSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("PreFocusChangeSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.PreFocusChangeSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void PreFocusChangeSignalConnect()
+ {
+ tlog.Debug(tag, $"PreFocusChangeSignalConnect START");
+
+ var testingTarget = new PreFocusChangeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<PreFocusChangeSignal>(testingTarget, "Should be an Instance of PreFocusChangeSignal!");
+
+ try
+ {
+ Tizen.NUI.FocusManager.PreFocusChangeEventCallback func = OnDummyCallback;
+ testingTarget.Connect(func);
+ testingTarget.Disconnect(func);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"PreFocusChangeSignalConnect END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/RenderTaskSignal")]
+ public class InternalRenderTaskSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RenderTaskSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.RenderTaskSignal.RenderTaskSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RenderTaskSignalConstructor()
+ {
+ tlog.Debug(tag, $"RenderTaskSignalConstructor START");
+
+ var testingTarget = new RenderTaskSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RenderTaskSignal>(testingTarget, "Should be an Instance of RenderTaskSignal!");
+
+ testingTarget.Dispose();
+ tlog.Debug(tag, $"RenderTaskSignalConstructor END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ResizeSignal")]
+ public class InternalResizeSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ResizeSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ResizeSignal.ResizeSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ResizeSignalConstructor()
+ {
+ tlog.Debug(tag, $"ResizeSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ResizeSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ResizeSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ResizeSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ResizeSignalConstructor.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ResizeSignalEmpty()
+ {
+ tlog.Debug(tag, $"ResizeSignalEmpty START");
+
+ var testingTarget = new ResizeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ResizeSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ResizeSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ResizeSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ResizeSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ResizeSignalGetConnectionCount START");
+
+ var testingTarget = new ResizeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ResizeSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ResizeSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ResizeSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ResizeSignalConnect()
+ {
+ tlog.Debug(tag, $"ResizeSignalConnect START");
+
+ var testingTarget = new ResizeSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ResizeSignalConnect END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("ResizeSignal Emit.")]
+ //[Property("SPEC", "Tizen.NUI.ResizeSignal.Emit M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void ResizeSignalEmit()
+ //{
+ // tlog.Debug(tag, $"ResizeSignalEmit START");
+ // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ // using (View view = new View())
+ // {
+ // view.Size2D = new Size2D(50, 60);
+ // var testingTarget = new ResizeSignal(view.SwigCPtr.Handle, false);
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<ResizeSignal>(testingTarget, "Should be an Instance of ResizeSignal!");
+
+ // try
+ // {
+ // using (Size2D size = new Size2D(20, 30))
+ // {
+ // testingTarget.Emit(size);
+ // }
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+
+ // testingTarget.Dispose();
+ // }
+
+ // tlog.Debug(tag, $"ResizeSignalEmit END (OK)");
+ //}
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/RotationGestureDetectedSignal")]
+ public class InternalRotationGestureDetectedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetectedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetectedSignal.RotationGestureDetectedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectedSignalConstructor()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new RotationGestureDetectedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"RotationGestureDetectedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetectedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetectedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectedSignalEmpty()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectedSignalEmpty START");
+
+ var testingTarget = new RotationGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetectedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetectedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectedSignalGetConnectionCount START");
+
+ var testingTarget = new RotationGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetectedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetectedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectedSignalConnect()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectedSignalConnect START");
+
+ var testingTarget = new RotationGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"RotationGestureDetectedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("RotationGestureDetectedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.RotationGestureDetectedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void RotationGestureDetectedSignalEmit()
+ {
+ tlog.Debug(tag, $"RotationGestureDetectedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new RotationGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");
+
+ try
+ {
+ using (RotationGesture gesture = new RotationGesture(view.SwigCPtr.Handle, false))
+ {
+ testingTarget.Emit(view, gesture);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"RotationGestureDetectedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ScrollStateChangedSignal")]
+ public class InternalScrollStateChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollStateChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ScrollStateChangedSignal.ScrollStateChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollStateChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ScrollStateChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ScrollStateChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollStateChangedSignal>(testingTarget, "Should be an ScrollStateChangedSignal of WheelSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ScrollStateChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollStateChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ScrollStateChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollStateChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ScrollStateChangedSignalEmpty START");
+
+ var testingTarget = new ScrollStateChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollStateChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollStateChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ScrollStateChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollStateChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ScrollStateChangedSignalGetConnectionCount START");
+
+ var testingTarget = new ScrollStateChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollStateChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollStateChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ScrollStateChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollStateChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"ScrollStateChangedSignalConnect START");
+
+ var testingTarget = new ScrollStateChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollStateChangedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollStateChangedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ScrollStateChangedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollStateChangedSignalEmit()
+ {
+ tlog.Debug(tag, $"ScrollStateChangedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ScrollStateChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!");
+
+ try
+ {
+ testingTarget.Emit(view);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ScrollStateChangedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ScrollViewSnapStartedSignal")]
+ public class InternalScrollViewSnapStartedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollViewSnapStartedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.ScrollViewSnapStartedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollViewSnapStartedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ScrollViewSnapStartedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an ScrollViewSnapStartedSignal of WheelSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollViewSnapStartedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollViewSnapStartedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmpty START");
+
+ var testingTarget = new ScrollViewSnapStartedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollViewSnapStartedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollViewSnapStartedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalGetConnectionCount START");
+
+ var testingTarget = new ScrollViewSnapStartedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollViewSnapStartedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollViewSnapStartedSignalConnect()
+ {
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalConnect START");
+
+ var testingTarget = new ScrollViewSnapStartedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollViewSnapStartedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ScrollViewSnapStartedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollViewSnapStartedSignalEmit()
+ {
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new ScrollViewSnapStartedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollViewSnapStartedSignal>(testingTarget, "Should be an Instance of ScrollViewSnapStartedSignal!");
+
+ try
+ {
+ testingTarget.Emit(new ScrollView.SnapEvent());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollViewSnapStartedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ScrollableSignal")]
+ public class InternalScrollableSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollableSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ScrollableSignal.ScrollableSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollableSignalConstructor()
+ {
+ tlog.Debug(tag, $"ScrollableSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ScrollableSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ScrollableSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollableSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ScrollableSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollableSignalEmpty()
+ {
+ tlog.Debug(tag, $"ScrollableSignalEmpty START");
+
+ var testingTarget = new ScrollableSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollableSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollableSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ScrollableSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollableSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ScrollableSignalGetConnectionCount START");
+
+ var testingTarget = new ScrollableSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollableSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollableSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ScrollableSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollableSignalConnect()
+ {
+ tlog.Debug(tag, $"ScrollableSignalConnect START");
+
+ var testingTarget = new ScrollableSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ScrollableSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ScrollableSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ScrollableSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ScrollableSignalEmit()
+ {
+ tlog.Debug(tag, $"ScrollableSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (Vector2 vector = new Vector2(0.3f, 0.5f))
+ {
+ var testingTarget = new ScrollableSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ScrollableSignal>(testingTarget, "Should be an Instance of ScrollableSignal!");
+
+ try
+ {
+ testingTarget.Emit(vector);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ScrollableSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/SignalConnectorType")]
+ public class InternalSignalConnectorTypeTest
+ {
+ 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("SignalConnectorType constructor.")]
+ [Property("SPEC", "Tizen.NUI.SignalConnectorType.SignalConnectorType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void SignalConnectorTypeConstructor()
+ {
+ tlog.Debug(tag, $"SignalConnectorTypeConstructor START");
+
+ using (View view = new View())
+ {
+ using (TypeRegistration typeRegistration = new TypeRegistration(view.SwigCPtr.Handle, false))
+ {
+ using (ImageView imageView = new ImageView())
+ {
+ SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool func = new SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool(imageView.SwigCPtr.Handle);
+ var testingTarget = new SignalConnectorType(typeRegistration, "View", func);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<SignalConnectorType>(testingTarget, "Should be an Instance of SignalConnectorType!");
+
+ testingTarget.Dispose();
+ }
+ }
+ }
+
+ tlog.Debug(tag, $"SignalConnectorTypeConstructor END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/StageWheelSignal")]
+ public class InternalStageWheelSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StageWheelSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.StageWheelSignal.StageWheelSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StageWheelSignalConstructor()
+ {
+ tlog.Debug(tag, $"StageWheelSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new StageWheelSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StageWheelSignal>(testingTarget, "Should be an Instance of StageWheelSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StageWheelSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StageWheelSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.StageWheelSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StageWheelSignalEmpty()
+ {
+ tlog.Debug(tag, $"StageWheelSignalEmpty START");
+
+ var testingTarget = new StageWheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StageWheelSignal>(testingTarget, "Should be an Instance of StageWheelSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StageWheelSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StageWheelSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.StageWheelSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StageWheelSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"StageWheelSignalGetConnectionCount START");
+
+ var testingTarget = new StageWheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StageWheelSignal>(testingTarget, "Should be an Instance of StageWheelSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StageWheelSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StageWheelSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.StageWheelSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StageWheelSignalConnect()
+ {
+ tlog.Debug(tag, $"StageWheelSignalConnect START");
+
+ var testingTarget = new StageWheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StageWheelSignal>(testingTarget, "Should be an Instance of StageWheelSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StageWheelSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StageWheelSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.StageWheelSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StageWheelSignalEmit()
+ {
+ tlog.Debug(tag, $"StageWheelSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new StageWheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StageWheelSignal>(testingTarget, "Should be an Instance of StageWheelSignal!");
+
+ try
+ {
+ testingTarget.Emit(new Wheel());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StageWheelSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/StateChangedSignalType")]
+ public class InternalStateChangedSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StateChangedSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.StateChangedSignalType.StateChangedSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StateChangedSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"StateChangedSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new StateChangedSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StateChangedSignalType>(testingTarget, "Should be an Instance of StateChangedSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StateChangedSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StateChangedSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.StateChangedSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StateChangedSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"StateChangedSignalTypeEmpty START");
+
+ var testingTarget = new StateChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StateChangedSignalType>(testingTarget, "Should be an Instance of StateChangedSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StateChangedSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StateChangedSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.StateChangedSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StateChangedSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"StateChangedSignalTypeGetConnectionCount START");
+
+ var testingTarget = new StateChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StateChangedSignalType>(testingTarget, "Should be an Instance of StateChangedSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StateChangedSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StateChangedSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.StateChangedSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StateChangedSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"StateChangedSignalTypeConnect START");
+
+ var testingTarget = new StateChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StateChangedSignalType>(testingTarget, "Should be an Instance of StateChangedSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StateChangedSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StateChangedSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.StateChangedSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StateChangedSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new StateChangedSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StateChangedSignalType>(testingTarget, "Should be an Instance of StateChangedSignalType!");
+
+ try
+ {
+ testingTarget.Emit(TTSPlayer.TTSState.Paused, TTSPlayer.TTSState.Playing);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StateChangedSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/StatusSignalType")]
+ public class InternalStatusSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StatusSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.StatusSignalType.StatusSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StatusSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new StatusSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StatusSignalType>(testingTarget, "Should be an Instance of StatusSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StatusSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StatusSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.StatusSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StatusSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeEmpty START");
+
+ var testingTarget = new StatusSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StatusSignalType>(testingTarget, "Should be an Instance of StatusSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StatusSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StatusSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.StatusSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StatusSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeGetConnectionCount START");
+
+ var testingTarget = new StatusSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StatusSignalType>(testingTarget, "Should be an Instance of StatusSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StatusSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StatusSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.StatusSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StatusSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeConnect START");
+
+ var testingTarget = new StatusSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StatusSignalType>(testingTarget, "Should be an Instance of StatusSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StatusSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StatusSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.StatusSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StatusSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"StatusSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new StatusSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StatusSignalType>(testingTarget, "Should be an Instance of StatusSignalType!");
+
+ try
+ {
+ testingTarget.Emit(true);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StatusSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/StringToVoidSignal")]
+ public class InternalStringToVoidSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StringToVoidSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.StringToVoidSignal.StringToVoidSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StringToVoidSignalConstructor()
+ {
+ tlog.Debug(tag, $"StringToVoidSignalConstructor START");
+
+ var testingTarget = new StringToVoidSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StringToVoidSignal>(testingTarget, "Should be an Instance of StringToVoidSignal!");
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StringToVoidSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StringToVoidSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.StringToVoidSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StringToVoidSignalEmpty()
+ {
+ tlog.Debug(tag, $"StringToVoidSignalEmpty START");
+
+ using (TextLabel label = new TextLabel())
+ {
+ label.Text = "TextLabel";
+ var testingTarget = new StringToVoidSignal(label.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StringToVoidSignal>(testingTarget, "Should be an Instance of StringToVoidSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StringToVoidSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StringToVoidSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.StringToVoidSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StringToVoidSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"StringToVoidSignalGetConnectionCount START");
+
+ using (TextLabel label = new TextLabel())
+ {
+ label.Text = "TextLabel";
+ var testingTarget = new StringToVoidSignal(label.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StringToVoidSignal>(testingTarget, "Should be an Instance of StringToVoidSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StringToVoidSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StringToVoidSignal GetResult.")]
+ [Property("SPEC", "Tizen.NUI.StringToVoidSignal.GetResult M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StringToVoidSignalGetResult()
+ {
+ tlog.Debug(tag, $"StringToVoidSignalGetResult START");
+
+ using (TextLabel label = new TextLabel())
+ {
+ label.Text = "TextLabel";
+ try
+ {
+ var result = StringToVoidSignal.GetResult(label.SwigCPtr.Handle);
+ tlog.Debug(tag, "GetResult : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Cuaght Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"StringToVoidSignalGetResult END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StringToVoidSignal SetResult.")]
+ [Property("SPEC", "Tizen.NUI.StringToVoidSignal.SetResult M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StringToVoidSignalSetResult()
+ {
+ tlog.Debug(tag, $"StringToVoidSignalSetResult START");
+
+ using (TextLabel label = new TextLabel())
+ {
+ label.Text = "";
+ try
+ {
+ StringToVoidSignal.SetResult(label.SwigCPtr.Handle, "TextLabel");
+ tlog.Debug(tag, "GetResult : " + StringToVoidSignal.GetResult(label.SwigCPtr.Handle));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Cuaght Exception: Failed!");
+ }
+ }
+
+ tlog.Debug(tag, $"StringToVoidSignalSetResult END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/StyleChangedSignal")]
+ public class InternalStyleChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StyleChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.StyleChangedSignal.StyleChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StyleChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"StyleChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new StyleChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StyleChangedSignal>(testingTarget, "Should be an Instance of StyleChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"StyleChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StyleChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.StyleChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StyleChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"StyleChangedSignalEmpty START");
+
+ var testingTarget = new StyleChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StyleChangedSignal>(testingTarget, "Should be an Instance of StyleChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StyleChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StyleChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.StyleChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StyleChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"StyleChangedSignalGetConnectionCount START");
+
+ var testingTarget = new StyleChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StyleChangedSignal>(testingTarget, "Should be an Instance of StyleChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StyleChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StyleChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.StyleChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void StyleChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"StyleChangedSignal START");
+
+ var testingTarget = new StyleChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StyleChangedSignal>(testingTarget, "Should be an Instance of StyleChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StyleChangedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("StyleChangedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.StyleChangedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void StyleChangedSignalEmit()
+ {
+ tlog.Debug(tag, $"StyleChangedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new StyleChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<StyleChangedSignal>(testingTarget, "Should be an Instance of StyleChangedSignal!");
+
+ try
+ {
+ testingTarget.Emit(StyleManager.Get(), StyleChangeType.DefaultFontChange);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"StyleChangedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TapGestureDetectedSignal")]
+ public class InternalTapGestureDetectedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetectedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetectedSignal.TapGestureDetectedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectedSignalConstructor()
+ {
+ tlog.Debug(tag, $"TapGestureDetectedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TapGestureDetectedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TapGestureDetectedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetectedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetectedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectedSignalEmpty()
+ {
+ tlog.Debug(tag, $"TapGestureDetectedSignalEmpty START");
+
+ var testingTarget = new TapGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetectedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetectedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TapGestureDetectedSignalGetConnectionCount START");
+
+ var testingTarget = new TapGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetectedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetectedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectedSignalConnect()
+ {
+ tlog.Debug(tag, $"TapGestureDetectedSignalConnect START");
+
+ var testingTarget = new TapGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TapGestureDetectedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TapGestureDetectedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.TapGestureDetectedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TapGestureDetectedSignalEmit()
+ {
+ tlog.Debug(tag, $"TapGestureDetectedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (TextLabel label = new TextLabel())
+ {
+ var testingTarget = new TapGestureDetectedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!");
+
+ try
+ {
+ testingTarget.Emit(label, new TapGesture());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TapGestureDetectedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TextEditorSignal")]
+ public class InternalTextEditorSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEditorSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TextEditorSignal.TextEditorSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextEditorSignalConstructor()
+ {
+ tlog.Debug(tag, $"TextEditorSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TextEditorSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextEditorSignal>(testingTarget, "Should be an Instance of TextEditorSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TextEditorSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEditorSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TextEditorSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextEditorSignalEmpty()
+ {
+ tlog.Debug(tag, $"TextEditorSignalEmpty START");
+
+ var testingTarget = new TextEditorSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextEditorSignal>(testingTarget, "Should be an Instance of TextEditorSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextEditorSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEditorSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TextEditorSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextEditorSignalConnectionCount()
+ {
+ tlog.Debug(tag, $"TextEditorSignalGetConnectionCount START");
+
+ var testingTarget = new TextEditorSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextEditorSignal>(testingTarget, "Should be an Instance of TextEditorSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextEditorSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextEditorSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TextEditorSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextEditorSignalConnect()
+ {
+ tlog.Debug(tag, $"TextEditorSignalConnect START");
+
+ var testingTarget = new TextEditorSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextEditorSignal>(testingTarget, "Should be an Instance of TextEditorSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextEditorSignalConnect END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TextFieldSignal")]
+ public class InternalTextFieldSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextFieldSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TextFieldSignal.TextFieldSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldSignalConstructor()
+ {
+ tlog.Debug(tag, $"TextFieldSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TextFieldSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TextFieldSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextFieldSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TextFieldSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldSignalEmpty()
+ {
+ tlog.Debug(tag, $"TextFieldSignalEmpty START");
+
+ var testingTarget = new TextFieldSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextFieldSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextFieldSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TextFieldSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TextFieldSignalGetConnectionCount START");
+
+ var testingTarget = new TextFieldSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextFieldSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextFieldSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TextFieldSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldSignalConnect()
+ {
+ tlog.Debug(tag, $"TextFieldSignalConnect START");
+
+ var testingTarget = new TextFieldSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextFieldSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextFieldSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.TextFieldSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextFieldSignalEmit()
+ {
+ tlog.Debug(tag, $"TextFieldSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (TextField field = new TextField())
+ {
+ var testingTarget = new TextFieldSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");
+
+ try
+ {
+ testingTarget.Emit(field);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TouchDataSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TextLabelSignal")]
+ public class InternalTextLabelSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextLabelSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TextLabelSignal.TextLabelSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextLabelSignalConstructor()
+ {
+ tlog.Debug(tag, $"TextLabelSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TextLabelSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TextLabelSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextLabelSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TextLabelSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextLabelSignalEmpty()
+ {
+ tlog.Debug(tag, $"TextLabelSignalEmpty START");
+
+ var testingTarget = new TextLabelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextLabelSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextLabelSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TextLabelSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextLabelSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TextLabelSignalGetConnectionCount START");
+
+ var testingTarget = new TextLabelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextLabelSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextLabelSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TextLabelSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextLabelSignalConnect()
+ {
+ tlog.Debug(tag, $"TextLabelSignalConnect START");
+
+ var testingTarget = new TextLabelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TextLabelSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TextLabelSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.TextLabelSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TextLabelSignalEmit()
+ {
+ tlog.Debug(tag, $"TextLabelSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (TextLabel label = new TextLabel())
+ {
+ var testingTarget = new TextLabelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!");
+
+ try
+ {
+ testingTarget.Emit(label);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TextLabelSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TimerSignalType")]
+ public class InternalTimerSignalTypeTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TimerSignalType constructor.")]
+ [Property("SPEC", "Tizen.NUI.TimerSignalType.TimerSignalType C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TimerSignalTypeConstructor()
+ {
+ tlog.Debug(tag, $"TimerSignalTypeConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TimerSignalType(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TimerSignalType>(testingTarget, "Should be an Instance of TimerSignalType!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TimerSignalTypeConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TimerSignalType Empty.")]
+ [Property("SPEC", "Tizen.NUI.TimerSignalType.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TimerSignalTypeEmpty()
+ {
+ tlog.Debug(tag, $"TimerSignalTypeEmpty START");
+
+ var testingTarget = new TimerSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TimerSignalType>(testingTarget, "Should be an Instance of TimerSignalType!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TimerSignalTypeEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TimerSignalType GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TimerSignalType.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TimerSignalTypeGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TimerSignalTypeGetConnectionCount START");
+
+ var testingTarget = new TimerSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TimerSignalType>(testingTarget, "Should be an Instance of TimerSignalType!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TimerSignalTypeGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TimerSignalType Connect.")]
+ [Property("SPEC", "Tizen.NUI.TimerSignalType.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TimerSignalTypeConnect()
+ {
+ tlog.Debug(tag, $"TimerSignalTypeConnect START");
+
+ var testingTarget = new TimerSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TimerSignalType>(testingTarget, "Should be an Instance of TimerSignalType!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TimerSignalTypeConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TimerSignalType Emit.")]
+ [Property("SPEC", "Tizen.NUI.TimerSignalType.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void TimerSignalTypeEmit()
+ {
+ tlog.Debug(tag, $"TimerSignalTypeEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new TimerSignalType();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TimerSignalType>(testingTarget, "Should be an Instance of TimerSignalType!");
+
+ try
+ {
+ testingTarget.Emit();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TimerSignalTypeEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TouchDataSignal")]
+ public class InternalTouchDataSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchDataSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TouchDataSignal.TouchDataSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchDataSignalConstructor()
+ {
+ tlog.Debug(tag, $"TouchDataSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TouchDataSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TouchDataSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchDataSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TouchDataSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchDataSignalEmpty()
+ {
+ tlog.Debug(tag, $"TouchDataSignalEmpty START");
+
+ var testingTarget = new TouchDataSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchDataSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchDataSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TouchDataSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchDataSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TouchDataSignalGetConnectionCount START");
+
+ var testingTarget = new TouchDataSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchDataSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchDataSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TouchDataSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchDataSignalConnect()
+ {
+ tlog.Debug(tag, $"TouchDataSignalConnect START");
+
+ var testingTarget = new TouchDataSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchDataSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchDataSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.TouchDataSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchDataSignalEmit()
+ {
+ tlog.Debug(tag, $"TouchDataSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ using (Touch touch = Touch.GetTouchFromPtr(view.SwigCPtr.Handle))
+ {
+ var testingTarget = new TouchDataSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchDataSignal>(testingTarget, "Should be an Instance of TouchDataSignal!");
+
+ try
+ {
+ testingTarget.Emit(view, touch);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+ }
+
+ tlog.Debug(tag, $"TouchDataSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/TouchSignal")]
+ public class InternalTouchSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr touchSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.TouchSignal.TouchSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchSignalConstructor()
+ {
+ tlog.Debug(tag, $"TouchSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TouchSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TouchSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.TouchSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchSignalEmpty()
+ {
+ tlog.Debug(tag, $"TouchSignalEmpty START");
+
+ var testingTarget = new TouchSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.TouchSignal.TouchSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"TouchSignalGetConnectionCount START");
+
+ var testingTarget = new TouchSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.TouchSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchSignalConnect()
+ {
+ tlog.Debug(tag, $"TouchSignalConnect START");
+
+ var testingTarget = new TouchSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"TouchSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("TouchSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.TouchSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void TouchSignalEmit()
+ {
+ tlog.Debug(tag, $"TouchSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new TouchSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<TouchSignal>(testingTarget, "Should be an Instance of TouchSignal!");
+
+ try
+ {
+ testingTarget.Emit(Touch.GetTouchFromPtr(view.SwigCPtr.Handle));
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"TouchSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/VectorBase")]
+ public class InternalVectorBaseTest
+ {
+ 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("VectorBase constructor.")]
+ [Property("SPEC", "Tizen.NUI.VectorBase.VectorBase C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VectorBaseConstructor()
+ {
+ tlog.Debug(tag, $"VectorBaseConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VectorBase>(testingTarget, "Should be an Instance of VectorBase!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VectorBaseConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VectorBase Capacity.")]
+ [Property("SPEC", "Tizen.NUI.VectorBase.Capacity M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VectorBaseCapacity()
+ {
+ tlog.Debug(tag, $"VectorBaseCapacity START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VectorBase>(testingTarget, "Should be an Instance of VectorBase!");
+
+ try
+ {
+ var result = testingTarget.Capacity();
+ tlog.Debug(tag, "Capacity : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VectorBaseCapacity END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VectorBase Count.")]
+ [Property("SPEC", "Tizen.NUI.VectorBase.Count M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VectorBaseCount()
+ {
+ tlog.Debug(tag, $"VectorBaseCount START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VectorBase>(testingTarget, "Should be an Instance of VectorBase!");
+
+ try
+ {
+ var result = testingTarget.Count();
+ tlog.Debug(tag, "Count : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VectorBaseCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VectorBase Size.")]
+ [Property("SPEC", "Tizen.NUI.VectorBase.Size M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VectorBaseSize()
+ {
+ tlog.Debug(tag, $"VectorBaseSize START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VectorBase>(testingTarget, "Should be an Instance of VectorBase!");
+
+ try
+ {
+ var result = testingTarget.Size();
+ tlog.Debug(tag, "Size : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VectorBaseSize END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VectorBase Empty.")]
+ [Property("SPEC", "Tizen.NUI.VectorBase.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VectorBaseEmpty()
+ {
+ tlog.Debug(tag, $"VectorBaseEmpty START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VectorBase(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VectorBase>(testingTarget, "Should be an Instance of VectorBase!");
+
+ try
+ {
+ var result = testingTarget.Empty();
+ tlog.Debug(tag, "Empty : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VectorBaseEmpty END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/VideoViewSignal")]
+ public class InternalVideoViewSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr videoViewSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VideoViewSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.VideoViewSignal.VideoViewSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VideoViewSignalConstructor()
+ {
+ tlog.Debug(tag, $"VideoViewSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VideoViewSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VideoViewSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VideoViewSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.VideoViewSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VideoViewSignalEmpty()
+ {
+ tlog.Debug(tag, $"VideoViewSignalEmpty START");
+
+ var testingTarget = new VideoViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VideoViewSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VideoViewSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.VideoViewSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VideoViewSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"VideoViewSignalGetConnectionCount START");
+
+ var testingTarget = new VideoViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VideoViewSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VideoViewSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.VideoViewSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VideoViewSignalConnect()
+ {
+ tlog.Debug(tag, $"VideoViewSignalConnect START");
+
+ var testingTarget = new VideoViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VideoViewSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VideoViewSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.VideoViewSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VideoViewSignalEmit()
+ {
+ tlog.Debug(tag, $"VideoViewSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (VideoView view = new VideoView())
+ {
+ var testingTarget = new VideoViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VideoViewSignal>(testingTarget, "Should be an Instance of VideoViewSignal!");
+
+ try
+ {
+ testingTarget.Emit(view);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VideoViewSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ViewLayoutDirectionChangedSignal")]
+ public class InternalViewLayoutDirectionChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr signal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewLayoutDirectionChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.ViewLayoutDirectionChangedSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewLayoutDirectionChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewLayoutDirectionChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewLayoutDirectionChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewLayoutDirectionChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmpty START");
+
+ var testingTarget = new ViewLayoutDirectionChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewLayoutDirectionChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewLayoutDirectionChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalGetConnectionCount START");
+
+ var testingTarget = new ViewLayoutDirectionChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewLayoutDirectionChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewLayoutDirectionChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConnect START");
+
+ var testingTarget = new ViewLayoutDirectionChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewLayoutDirectionChangedSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ViewLayoutDirectionChangedSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ [Obsolete]
+ public void ViewLayoutDirectionChangedSignalEmit()
+ {
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ var testingTarget = new ViewLayoutDirectionChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewLayoutDirectionChangedSignal>(testingTarget, "Should be an Instance of ViewLayoutDirectionChangedSignal!");
+
+ try
+ {
+ using (View view = new View())
+ {
+ testingTarget.Emit(view);
+ }
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewLayoutDirectionChangedSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ViewResourceReadySignal")]
+ public class InternalViewResourceReadySignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr viewResourceReadySignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewResourceReadySignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ViewResourceReadySignal.ViewResourceReadySignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewResourceReadySignalConstructor()
+ {
+ tlog.Debug(tag, $"ViewResourceReadySignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewResourceReadySignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewResourceReadySignal>(testingTarget, "Should be an Instance of ViewResourceReadySignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewResourceReadySignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewResourceReadySignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ViewResourceReadySignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewResourceReadySignalEmpty()
+ {
+ tlog.Debug(tag, $"ViewResourceReadySignalEmpty START");
+
+ var testingTarget = new ViewResourceReadySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewResourceReadySignal>(testingTarget, "Should be an Instance of ViewResourceReadySignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewResourceReadySignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewResourceReadySignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ViewResourceReadySignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewResourceReadySignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ViewResourceReadySignalGetConnectionCount START");
+
+ var testingTarget = new ViewResourceReadySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewResourceReadySignal>(testingTarget, "Should be an Instance of ViewResourceReadySignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewResourceReadySignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewResourceReadySignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ViewResourceReadySignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewResourceReadySignalConnect()
+ {
+ tlog.Debug(tag, $"ViewResourceReadySignalConnect START");
+
+ var testingTarget = new ViewResourceReadySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewResourceReadySignal>(testingTarget, "Should be an Instance of ViewResourceReadySignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewResourceReadySignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewResourceReadySignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ViewResourceReadySignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewResourceReadySignalEmit()
+ {
+ tlog.Debug(tag, $"ViewResourceReadySignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewResourceReadySignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewResourceReadySignal>(testingTarget, "Should be an Instance of ViewResourceReadySignal!");
+
+ try
+ {
+ testingTarget.Emit(view);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewResourceReadySignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ViewSignal")]
+ public class InternalViewSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr viewSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ViewSignal.ViewSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewSignalConstructor()
+ {
+ tlog.Debug(tag, $"ViewSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ViewSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewSignalEmpty()
+ {
+ tlog.Debug(tag, $"ViewSignalEmpty START");
+
+ var testingTarget = new ViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ViewSignal.ViewSignal M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ViewSignalGetConnectionCount START");
+
+ var testingTarget = new ViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ViewSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewSignalConnect()
+ {
+ tlog.Debug(tag, $"ViewSignalConnect START");
+
+ var testingTarget = new ViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.ViewSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewSignalEmit()
+ {
+ tlog.Debug(tag, $"ViewSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewSignal>(testingTarget, "Should be an Instance of ViewSignal!");
+
+ try
+ {
+ testingTarget.Emit(view);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/ViewVisibilityChangedSignal")]
+ public class InternalViewVisibilityChangedSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr viewVisibilityChangedSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewVisibilityChangedSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.ViewSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewVisibilityChangedSignalConstructor()
+ {
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new ViewVisibilityChangedSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewVisibilityChangedSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewVisibilityChangedSignalEmpty()
+ {
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalEmpty START");
+
+ var testingTarget = new ViewVisibilityChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewVisibilityChangedSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewVisibilityChangedSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalGetConnectionCount START");
+
+ var testingTarget = new ViewVisibilityChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("ViewVisibilityChangedSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void ViewVisibilityChangedSignalConnect()
+ {
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalConnect START");
+
+ var testingTarget = new ViewVisibilityChangedSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"ViewVisibilityChangedSignalConnect END (OK)");
+ }
+
+ //[Test]
+ //[Category("P1")]
+ //[Description("ViewVisibilityChangedSignal Emit.")]
+ //[Property("SPEC", "Tizen.NUI.ViewVisibilityChangedSignal.Emit M")]
+ //[Property("SPEC_URL", "-")]
+ //[Property("CRITERIA", "MR")]
+ //[Property("AUTHOR", "guowei.wang@samsung.com")]
+ //public void ViewVisibilityChangedSignalEmit()
+ //{
+ // tlog.Debug(tag, $"ViewVisibilityChangedSignalEmit START");
+ // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ // using (View view = new View())
+ // {
+ // var testingTarget = new ViewVisibilityChangedSignal(view.SwigCPtr.Handle, false);
+ // Assert.IsNotNull(testingTarget, "Should be not null!");
+ // Assert.IsInstanceOf<ViewVisibilityChangedSignal>(testingTarget, "Should be an Instance of ViewVisibilityChangedSignal!");
+
+ // using (View parent = new View())
+ // {
+ // parent.Add(view);
+ // try
+ // {
+ // testingTarget.Emit(view, true, 1);
+ // }
+ // catch (Exception e)
+ // {
+ // tlog.Debug(tag, e.Message.ToString());
+ // Assert.Fail("Caught Exception: Failed!");
+ // }
+ // }
+
+ // testingTarget.Dispose();
+ // }
+
+ // tlog.Debug(tag, $"ViewVisibilityChangedSignalEmit END (OK)");
+ //}
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/VisualEventSignal")]
+ public class InternalVisualEventSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr visualEventSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VisualEventSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.VisualEventSignal.VisualEventSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VisualEventSignalConstructor()
+ {
+ tlog.Debug(tag, $"VisualEventSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VisualEventSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VisualEventSignal>(testingTarget, "Should be an Instance of VisualEventSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VisualEventSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VisualEventSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.VisualEventSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VisualEventSignalEmpty()
+ {
+ tlog.Debug(tag, $"VisualEventSignalEmpty START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VisualEventSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VisualEventSignal>(testingTarget, "Should be an Instance of VisualEventSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VisualEventSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VisualEventSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.VisualEventSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VisualEventSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"VisualEventSignalGetConnectionCount START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VisualEventSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VisualEventSignal>(testingTarget, "Should be an Instance of VisualEventSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VisualEventSignalGetConnectionCount END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/VoidSignal")]
+ public class InternalVoidSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr voidSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VoidSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.VoidSignal.VoidSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VoidSignalConstructor()
+ {
+ tlog.Debug(tag, $"VoidSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VoidSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VoidSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VoidSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.VoidSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VoidSignalEmpty()
+ {
+ tlog.Debug(tag, $"VoidSignalEmpty START");
+
+ var testingTarget = new VoidSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VoidSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VoidSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.VoidSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VoidSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"VoidSignalGetConnectionCount START");
+
+ var testingTarget = new VoidSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VoidSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VoidSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.VoidSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VoidSignalConnect()
+ {
+ tlog.Debug(tag, $"VoidSignalConnect START");
+
+ var testingTarget = new VoidSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"VoidSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("VoidSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.VoidSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void VoidSignalEmit()
+ {
+ tlog.Debug(tag, $"VoidSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new VoidSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<VoidSignal>(testingTarget, "Should be an Instance of VoidSignal!");
+
+ try
+ {
+ testingTarget.Emit();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"VoidSignalEmit END (OK)");
+ }
+ }
+}
--- /dev/null
+using global::System;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI.Components;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Devel.Tests
+{
+ using tlog = Tizen.Log;
+
+ [TestFixture]
+ [Description("internal/Common/WheelSignal")]
+ public class InternalWheelSignalTest
+ {
+ private const string tag = "NUITEST";
+
+ private delegate bool dummyCallback(IntPtr wheelSignal);
+ private bool OnDummyCallback(IntPtr data)
+ {
+ return false;
+ }
+
+ [SetUp]
+ public void Init()
+ {
+ tlog.Info(tag, "Init() is called!");
+ }
+
+ [TearDown]
+ public void Destroy()
+ {
+ tlog.Info(tag, "Destroy() is called!");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WheelSignal constructor.")]
+ [Property("SPEC", "Tizen.NUI.WheelSignal.WheelSignal C")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "CONSTR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelSignalConstructor()
+ {
+ tlog.Debug(tag, $"WheelSignalConstructor START");
+
+ using (View view = new View())
+ {
+ var testingTarget = new WheelSignal(view.SwigCPtr.Handle, false);
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"WheelSignalConstructor END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WheelSignal Empty.")]
+ [Property("SPEC", "Tizen.NUI.WheelSignal.Empty M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelSignalEmpty()
+ {
+ tlog.Debug(tag, $"WheelSignalEmpty START");
+
+ var testingTarget = new WheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
+
+ try
+ {
+ testingTarget.Empty();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"WheelSignalEmpty END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WheelSignal GetConnectionCount.")]
+ [Property("SPEC", "Tizen.NUI.WheelSignal.GetConnectionCount M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelSignalGetConnectionCount()
+ {
+ tlog.Debug(tag, $"WheelSignalGetConnectionCount START");
+
+ var testingTarget = new WheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
+
+ try
+ {
+ testingTarget.GetConnectionCount();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"WheelSignalGetConnectionCount END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WheelSignal Connect.")]
+ [Property("SPEC", "Tizen.NUI.WheelSignal.Connect M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelSignalConnect()
+ {
+ tlog.Debug(tag, $"WheelSignalConnect START");
+
+ var testingTarget = new WheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
+
+ try
+ {
+ dummyCallback callback = OnDummyCallback;
+ testingTarget.Connect(callback);
+ testingTarget.Disconnect(callback);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+
+ tlog.Debug(tag, $"WheelSignalConnect END (OK)");
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("WheelSignal Emit.")]
+ [Property("SPEC", "Tizen.NUI.WheelSignal.Emit M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "guowei.wang@samsung.com")]
+ public void WheelSignalEmit()
+ {
+ tlog.Debug(tag, $"WheelSignalEmit START");
+ var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
+ var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
+
+ tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
+
+ using (View view = new View())
+ {
+ var testingTarget = new WheelSignal();
+ Assert.IsNotNull(testingTarget, "Should be not null!");
+ Assert.IsInstanceOf<WheelSignal>(testingTarget, "Should be an Instance of WheelSignal!");
+
+ try
+ {
+ testingTarget.Emit(view, new Wheel());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception: Failed!");
+ }
+
+ testingTarget.Dispose();
+ }
+
+ tlog.Debug(tag, $"WheelSignalEmit END (OK)");
+ }
+ }
+}