Merge remote-tracking branch 'origin/master' into tizen
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Common / TSNUIEventType.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("internal/Common/NUIEventType")]
13     public class NUIEventTypeTests
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
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()
37         {
38             tlog.Debug(tag, $"NUIEventTypeConstructor START");
39                         
40             var nuiEventType = new NUIEventType("TimeTick");
41
42             Assert.IsNotNull(nuiEventType, "Can't create success object NUIEventType");
43             Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
44                         
45                         tlog.Debug(tag, $"NUIEventTypeConstructor END (OK)");
46         }
47
48         [Test]
49         [Category("P1")]
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()
56         {
57             tlog.Debug(tag, $"NUIEventTypeTimeTick START");
58                         
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!");
62                         
63                         tlog.Debug(tag, $"NUIEventTypeTimeTick END (OK)");
64         }
65
66         [Test]
67         [Category("P1")]
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()
74         {
75             tlog.Debug(tag, $"NUIEventTypeAmbientTick START");
76                         
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!");
80                         
81                         tlog.Debug(tag, $"NUIEventTypeAmbientTick END (OK)");
82         }
83
84         [Test]
85         [Category("P1")]
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()
92         {
93             tlog.Debug(tag, $"NUIEventTypeAmbientChanged START");
94                         
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!");
98                         
99                         tlog.Debug(tag, $"NUIEventTypeAmbientChanged END (OK)");
100         }
101
102         [Test]
103         [Category("P1")]
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()
111         {
112             tlog.Debug(tag, $"NUIEventTypeImplicit START");
113                         
114             NUIEventType nuiEventType = "TimeTick";
115             Assert.IsInstanceOf<NUIEventType>(nuiEventType, "Should be an instance of NUIEventType type.");
116                         
117                         tlog.Debug(tag, $"NUIEventTypeImplicit END (OK)");
118         }
119     }
120 }