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/NUIEventType")]
13 public class NUIEventTypeTests
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("NUIEventType constructor.")]
32 [Property("SPEC", "Tizen.NUI.NUIEventType.NUIEventType C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void NUIEventType_INIT()
38 tlog.Debug(tag, $"NUIEventTypeConstructor START");
40 var nuiEventType = new NUIEventType("TimeTick");
42 Assert.IsNotNull(nuiEventType, "Can't create success object NUIEventType");
43 Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
45 tlog.Debug(tag, $"NUIEventTypeConstructor END (OK)");
50 [Description("NUIEventType TimeTick.")]
51 [Property("SPEC", "Tizen.NUI.NUIEventType.TimeTick A")]
52 [Property("SPEC_URL", "-")]
53 [Property("CRITERIA", "PRO")]
54 [Property("AUTHOR", "guowei.wang@samsung.com")]
55 public void TimeTick_GET_VALUE()
57 tlog.Debug(tag, $"NUIEventTypeTimeTick START");
59 var nuiEventType = NUIEventType.TimeTick;
60 Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
61 Assert.AreEqual(NUIEventType.TimeTick, nuiEventType, "Should be equal!");
63 tlog.Debug(tag, $"NUIEventTypeTimeTick END (OK)");
68 [Description("NUIEventType AmbientTick.")]
69 [Property("SPEC", "Tizen.NUI.NUIEventType.AmbientTick A")]
70 [Property("SPEC_URL", "-")]
71 [Property("CRITERIA", "PRO")]
72 [Property("AUTHOR", "guowei.wang@samsung.com")]
73 public void NUIEventTypeAmbientTick()
75 tlog.Debug(tag, $"NUIEventTypeAmbientTick START");
77 var nuiEventType = NUIEventType.AmbientTick;
78 Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
79 Assert.AreEqual(NUIEventType.AmbientTick, nuiEventType, "Should be equal!");
81 tlog.Debug(tag, $"NUIEventTypeAmbientTick END (OK)");
86 [Description("NUIEventType AmbientChanged.")]
87 [Property("SPEC", "Tizen.NUI.NUIEventType.AmbientChanged A")]
88 [Property("SPEC_URL", "-")]
89 [Property("CRITERIA", "PRO")]
90 [Property("AUTHOR", "guowei.wang@samsung.com")]
91 public void NUIEventTypeAmbientChanged()
93 tlog.Debug(tag, $"NUIEventTypeAmbientChanged START");
95 var nuiEventType = NUIEventType.AmbientChanged;
96 Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
97 Assert.AreEqual(NUIEventType.AmbientChanged, nuiEventType, "Should be equal!");
99 tlog.Debug(tag, $"NUIEventTypeAmbientChanged END (OK)");
104 [Description("NUIEventType implicit string.")]
105 [Property("SPEC", "Tizen.NUI.NUIEventType.implicit M")]
106 [Property("SPEC_URL", "-")]
107 [Property("CRITERIA", "MR")]
108 [Property("COVPARAM", "string")]
109 [Property("AUTHOR", "guowei.wang@samsung.com")]
110 public void NUIEventTypeImplicit()
112 tlog.Debug(tag, $"NUIEventTypeImplicit START");
114 NUIEventType nuiEventType = "TimeTick";
115 Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
117 tlog.Debug(tag, $"NUIEventTypeImplicit END (OK)");