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 class TSTransitionSetSignal
15 private const string tag = "NUITEST";
16 private global::System.IntPtr OnIntPtrCallback;
17 private delegate bool dummyCallback(IntPtr transitionSet);
18 private bool OnDummyCallback(IntPtr data)
26 tlog.Info(tag, "Init() is called!");
32 tlog.Info(tag, "Destroy() is called!");
37 [Description("TransitionSetSignal constructor.")]
38 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.TransitionSetSignal M")]
39 [Property("SPEC_URL", "-")]
40 [Property("CRITERIA", "MR")]
41 [Property("AUTHOR", "guowei.wang@samsung.com")]
42 public void TransitionSetSignalConstructor()
44 tlog.Debug(tag, $"TransitionSetSignalConstructor START");
46 using (View view = new View())
48 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
49 Assert.IsNotNull(testingTarget, "Should be not null!");
50 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
52 testingTarget.Dispose();
55 tlog.Debug(tag, $"TransitionSetSignalConstructor END (OK)");
60 [Description("TransitionSetSignal Empty.")]
61 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.Empty M")]
62 [Property("SPEC_URL", "-")]
63 [Property("CRITERIA", "MR")]
64 [Property("AUTHOR", "guowei.wang@samsung.com")]
65 public void TransitionSetSignalEmpty()
67 tlog.Debug(tag, $"TransitionSetSignalEmpty START");
69 using (View view = new View())
71 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
72 Assert.IsNotNull(testingTarget, "Should be not null!");
73 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
77 tlog.Debug(tag, "Empty : " + testingTarget.Empty());
81 tlog.Debug(tag, e.Message.ToString());
82 Assert.Fail("Caught Exception : Failed!");
85 testingTarget.Dispose();
88 tlog.Debug(tag, $"TransitionSetSignalEmpty END (OK)");
93 [Description("TransitionSetSignal GetConnectionCount.")]
94 [Property("SPEC", "Tizen.NUI.TransitionSetSignal.GetConnectionCount M")]
95 [Property("SPEC_URL", "-")]
96 [Property("CRITERIA", "MR")]
97 [Property("AUTHOR", "guowei.wang@samsung.com")]
98 public void TransitionSetSignalGetConnectionCount()
100 tlog.Debug(tag, $"TransitionSetSignalGetConnectionCount START");
102 using (View view = new View())
104 var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
105 Assert.IsNotNull(testingTarget, "Should be not null!");
106 Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
110 tlog.Debug(tag, "ConnectionCount : " + testingTarget.GetConnectionCount());
114 tlog.Debug(tag, e.Message.ToString());
115 Assert.Fail("Caught Exception : Failed!");
118 testingTarget.Dispose();
121 tlog.Debug(tag, $"TransitionSetSignalGetConnectionCount END (OK)");
126 //[Description("TransitionSetSignal Connect.")]
127 //[Property("SPEC", "Tizen.NUI.TransitionSetSignal.Connect M")]
128 //[Property("SPEC_URL", "-")]
129 //[Property("CRITERIA", "MR")]
130 //[Property("AUTHOR", "guowei.wang@samsung.com")]
131 //public void TransitionSetSignalConnect()
133 // tlog.Debug(tag, $"TransitionSetSignalConnect START");
135 // using (View view = new View())
137 // var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
138 // Assert.IsNotNull(testingTarget, "Should be not null!");
139 // Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
143 // dummyCallback callback = OnDummyCallback;
144 // testingTarget.Connect(callback);
145 // testingTarget.Disconnect(callback);
147 // catch (Exception e)
149 // tlog.Debug(tag, e.Message.ToString());
150 // Assert.Fail("Caught Exception: Failed!");
153 // testingTarget.Dispose();
156 // tlog.Debug(tag, $"TransitionSetSignalConnect END (OK)");
161 //[Description("TransitionSetSignal Connect. With IntPtr")]
162 //[Property("SPEC", "Tizen.NUI.TransitionSetSignal.Connect M")]
163 //[Property("SPEC_URL", "-")]
164 //[Property("CRITERIA", "MR")]
165 //[Property("AUTHOR", "guowei.wang@samsung.com")]
166 //public void TransitionSetSignalConnectWithIntPtr()
168 // tlog.Debug(tag, $"TransitionSetSignalConnectWithIntPtr START");
170 // using (View view = new View())
172 // var testingTarget = new TransitionSetFinishedSignal(view.SwigCPtr.Handle, false);
173 // Assert.IsNotNull(testingTarget, "Should be not null!");
174 // Assert.IsInstanceOf<TransitionSetFinishedSignal>(testingTarget, "Should be an Instance of TransitionSetFinishedSignal!");
178 // testingTarget.Connect(view.SwigCPtr.Handle);
179 // testingTarget.Disconnect(view.SwigCPtr.Handle);
181 // catch (Exception e)
183 // tlog.Debug(tag, e.Message.ToString());
184 // Assert.Fail("Caught Exception: Failed!");
187 // testingTarget.Dispose();
190 // tlog.Debug(tag, $"TransitionSetSignalConnectWithIntPtr END (OK)");