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/Common/ListEventSignalType")]
13 public class InternalListEventSignalTypeTest
15 private const string tag = "NUITEST";
17 private delegate bool dummyCallback(IntPtr signal);
18 private bool OnDummyCallback(IntPtr data)
26 tlog.Info(tag, "Init() is called!");
32 tlog.Info(tag, "Destroy() is called!");
37 //[Description("ListEventSignalType constructor.")]
38 //[Property("SPEC", "Tizen.NUI.ListEventSignalType.ListEventSignalType C")]
39 //[Property("SPEC_URL", "-")]
40 //[Property("CRITERIA", "CONSTR")]
41 //[Property("AUTHOR", "guowei.wang@samsung.com")]
42 //public void ListEventSignalTypeConstructor()
44 // tlog.Debug(tag, $"ListEventSignalTypeConstructor START");
46 // var testingTarget = new ListEventSignalType();
47 // Assert.IsNotNull(testingTarget, "Should be not null!");
48 // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
50 // testingTarget.Dispose();
51 // tlog.Debug(tag, $"ListEventSignalTypeConstructor END (OK)");
56 //[Description("ListEventSignalType Empty.")]
57 //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Empty M")]
58 //[Property("SPEC_URL", "-")]
59 //[Property("CRITERIA", "MR")]
60 //[Property("AUTHOR", "guowei.wang@samsung.com")]
61 //public void ListEventSignalTypeEmpty()
63 // tlog.Debug(tag, $"ListEventSignalTypeEmpty START");
65 // var testingTarget = new ListEventSignalType();
66 // Assert.IsNotNull(testingTarget, "Should be not null!");
67 // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
71 // testingTarget.Empty();
73 // catch (Exception e)
75 // tlog.Debug(tag, e.Message.ToString());
76 // Assert.Fail("Caught Exception: Failed!");
79 // testingTarget.Dispose();
81 // tlog.Debug(tag, $"ListEventSignalTypeEmpty END (OK)");
86 //[Description("ListEventSignalType GetConnectionCount.")]
87 //[Property("SPEC", "Tizen.NUI.ListEventSignalType.GetConnectionCount M")]
88 //[Property("SPEC_URL", "-")]
89 //[Property("CRITERIA", "MR")]
90 //[Property("AUTHOR", "guowei.wang@samsung.com")]
91 //public void ListEventSignalTypeGetConnectionCount()
93 // tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount START");
95 // var testingTarget = new ListEventSignalType();
96 // Assert.IsNotNull(testingTarget, "Should be not null!");
97 // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
101 // testingTarget.GetConnectionCount();
103 // catch (Exception e)
105 // tlog.Debug(tag, e.Message.ToString());
106 // Assert.Fail("Caught Exception: Failed!");
109 // testingTarget.Dispose();
111 // tlog.Debug(tag, $"ListEventSignalTypeGetConnectionCount END (OK)");
116 //[Description("ListEventSignalType Connect.")]
117 //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Connect M")]
118 //[Property("SPEC_URL", "-")]
119 //[Property("CRITERIA", "MR")]
120 //[Property("AUTHOR", "guowei.wang@samsung.com")]
121 //public void ListEventSignalTypeConnect()
123 // tlog.Debug(tag, $"ListEventSignalTypeConnect START");
125 // var testingTarget = new ListEventSignalType();
126 // Assert.IsNotNull(testingTarget, "Should be not null!");
127 // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
131 // dummyCallback callback = OnDummyCallback;
132 // testingTarget.Connect(callback);
133 // testingTarget.Disconnect(callback);
135 // catch (Exception e)
137 // tlog.Debug(tag, e.Message.ToString());
138 // Assert.Fail("Caught Exception: Failed!");
141 // testingTarget.Dispose();
143 // tlog.Debug(tag, $"ListEventSignalTypeConnect END (OK)");
148 //[Description("ListEventSignalType Emit.")]
149 //[Property("SPEC", "Tizen.NUI.ListEventSignalType.Emit M")]
150 //[Property("SPEC_URL", "-")]
151 //[Property("CRITERIA", "MR")]
152 //[Property("AUTHOR", "guowei.wang@samsung.com")]
153 //public void ListEventSignalTypeEmit()
155 // tlog.Debug(tag, $"ListEventSignalTypeEmit START");
156 // var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
157 // var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
159 // tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
161 // using (View view = new View())
163 // var testingTarget = new ListEventSignalType();
164 // Assert.IsNotNull(testingTarget, "Should be not null!");
165 // Assert.IsInstanceOf<ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!");
169 // testingTarget.Emit(view);
171 // catch (Exception e)
173 // tlog.Debug(tag, e.Message.ToString());
174 // Assert.Fail("Caught Exception: Failed!");
177 // testingTarget.Dispose();
180 // tlog.Debug(tag, $"ListEventSignalTypeEmit END (OK)");