3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("Internal/Transition/TransitionSetSignal")]
13 public class InternalTransitionSetSignalTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("TransitionSetSignal constructor.")]
32 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.TransitionSetSignal M")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "MR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void TransitionSetSignalConstructor()
38 tlog.Debug(tag, $"TransitionSetSignalConstructor START");
40 using (View view = new View())
42 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
43 Assert.IsNotNull(testingTarget, "Should be not null!");
44 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
46 testingTarget.Dispose();
49 tlog.Debug(tag, $"TransitionSetSignalConstructor END (OK)");
54 [Description("TransitionSetSignal Empty.")]
55 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.Empty M")]
56 [Property("SPEC_URL", "-")]
57 [Property("CRITERIA", "MR")]
58 [Property("AUTHOR", "guowei.wang@samsung.com")]
59 public void TransitionSetSignalEmpty()
61 tlog.Debug(tag, $"TransitionSetSignalEmpty START");
63 using (View view = new View())
65 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
66 Assert.IsNotNull(testingTarget, "Should be not null!");
67 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
71 tlog.Debug(tag, "Empty : " + testingTarget.Empty());
75 tlog.Debug(tag, e.Message.ToString());
76 Assert.Fail("Caught Exception : Failed!");
79 testingTarget.Dispose();
82 tlog.Debug(tag, $"TransitionSetSignalEmpty END (OK)");
87 [Description("TransitionSetSignal GetConnectionCount.")]
88 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.GetConnectionCount M")]
89 [Property("SPEC_URL", "-")]
90 [Property("CRITERIA", "MR")]
91 [Property("AUTHOR", "guowei.wang@samsung.com")]
92 public void TransitionSetSignalGetConnectionCount()
94 tlog.Debug(tag, $"TransitionSetSignalGetConnectionCount START");
96 using (View view = new View())
98 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
99 Assert.IsNotNull(testingTarget, "Should be not null!");
100 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
104 tlog.Debug(tag, "ConnectionCount : " + testingTarget.GetConnectionCount());
108 tlog.Debug(tag, e.Message.ToString());
109 Assert.Fail("Caught Exception : Failed!");
112 testingTarget.Dispose();
115 tlog.Debug(tag, $"TransitionSetSignalGetConnectionCount END (OK)");