Release 9.0.0.16429
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Theme / TSDictionaryExternalTheme.cs
1 using NUnit.Framework;
2 using System.Collections.Generic;
3
4 namespace Tizen.NUI.Devel.Tests
5 {
6     using tlog = Tizen.Log;
7
8     [TestFixture]
9     [Description("public/Theme/DictionaryExternalTheme")]
10     internal class PublicDictionaryExternalThemeTest
11     {
12         private const string tag = "NUITEST";
13
14         [SetUp]
15         public void Init()
16         {
17             tlog.Info(tag, "Init() is called!");
18         }
19
20         [TearDown]
21         public void Destroy()
22         {
23             tlog.Info(tag, "Destroy() is called!");
24         }
25
26
27         [Test]
28         [Category("P1")]
29         [Description("Create a DictionaryExternalTheme object.")]
30         [Property("SPEC", "Tizen.NUI.DictionaryExternalTheme.DictionaryExternalTheme C")]
31         [Property("SPEC_URL", "-")]
32         [Property("CRITERIA", "CONSTR")]
33         [Property("COVPARAM", "")]
34         public void DictionaryExternalThemeConstructor()
35         {
36             tlog.Debug(tag, $"DictionaryExternalThemeConstructor START");
37             string id = "id1"; string version = "version1";
38             Dictionary<string, string> theme = new Dictionary<string, string>
39             {
40                 { "aaa", "111" },
41                 { "bbb", "222" }
42             };
43
44             DictionaryExternalTheme a1 = new DictionaryExternalTheme(id, version, theme);
45
46             tlog.Debug(tag, $"DictionaryExternalThemeConstructor END (OK)");
47             Assert.Pass("DictionaryExternalThemeConstructor");
48         }
49
50         [Test]
51         [Category("P1")]
52         [Description("test DictionaryExternalTheme Id.")]
53         [Property("SPEC", "Tizen.NUI.DictionaryExternalTheme.Id A")]
54         [Property("SPEC_URL", "-")]
55         [Property("CRITERIA", "PRW")]
56         [Property("COVPARAM", "")]
57         public void DictionaryExternalThemeId()
58         {
59             tlog.Debug(tag, $"DictionaryExternalThemeId START");
60
61             string id = "id1"; string version = "version1";
62             Dictionary<string, string> theme = new Dictionary<string, string>
63             {
64                 { "aaa", "111" },
65                 { "bbb", "222" }
66             };
67
68             DictionaryExternalTheme a1 = new DictionaryExternalTheme(id, version, theme);
69             string b1 = a1.Id;
70
71             tlog.Debug(tag, $"DictionaryExternalThemeId END (OK)");
72             Assert.Pass("DictionaryExternalThemeId");
73         }
74
75         [Test]
76         [Category("P1")]
77         [Description("test DictionaryExternalTheme Version.")]
78         [Property("SPEC", "Tizen.NUI.DictionaryExternalTheme.Version A")]
79         [Property("SPEC_URL", "-")]
80         [Property("CRITERIA", "PRW")]
81         [Property("COVPARAM", "")]
82         public void DictionaryExternalThemeVersion()
83         {
84             tlog.Debug(tag, $"DictionaryExternalThemeVersion START");
85
86             string id = "id1"; string version = "version1";
87             Dictionary<string, string> theme = new Dictionary<string, string>
88             {
89                 { "aaa", "111" },
90                 { "bbb", "222" }
91             };
92
93             DictionaryExternalTheme a1 = new DictionaryExternalTheme(id, version, theme);
94             string b1 = a1.Version;
95
96             tlog.Debug(tag, $"DictionaryExternalThemeVersion END (OK)");
97             Assert.Pass("DictionaryExternalThemeVersion");
98         }
99
100         [Test]
101         [Category("P1")]
102         [Description("test DictionaryExternalTheme GetValue.")]
103         [Property("SPEC", "Tizen.NUI.DictionaryExternalTheme.GetValue M")]
104         [Property("SPEC_URL", "-")]
105         [Property("CRITERIA", "MR")]
106         [Property("COVPARAM", "")]
107         public void DictionaryExternalThemeGetValue()
108         {
109             tlog.Debug(tag, $"DictionaryExternalThemeGetValue START");
110
111             string id = "id1"; string version = "version1";
112             Dictionary<string, string> theme = new Dictionary<string, string>
113             {
114                 { "aaa", "111" },
115                 { "bbb", "222" }
116             };
117
118             DictionaryExternalTheme a1 = new DictionaryExternalTheme(id, version, theme);
119             string b1 = a1.GetValue("aaa");
120
121             tlog.Debug(tag, $"DictionaryExternalThemeGetValue END (OK)");
122             Assert.Pass("DictionaryExternalThemeGetValue");
123         }
124     }
125 }