[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / TSStaticResourceExtension.cs
1 using NUnit.Framework;
2 using System;
3 using System.Xml;
4 using Tizen.NUI.Xaml;
5
6 namespace Tizen.NUI.Devel.Tests
7 {
8     using tlog = Tizen.Log;
9
10     [TestFixture]
11     [Description("public/xaml/StaticResourceExtension")]
12     public class PublicStaticResourceExtensionTest
13     {
14         private const string tag = "NUITEST";
15         private StaticResourceExtension staticRes;
16         [SetUp]
17         public void Init()
18         {
19             tlog.Info(tag, "Init() is called!");
20             staticRes = new StaticResourceExtension();
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             staticRes = null;
27             tlog.Info(tag, "Destroy() is called!");
28         }
29
30         [Test]
31         [Category("P1")]
32         [Description("StaticResourceExtension Key")]
33         [Property("SPEC", "Tizen.NUI.StaticResourceExtension.Key A")]
34         [Property("SPEC_URL", "-")]
35         [Property("CRITERIA", "PRW")]
36         public void StaticResourceExtensionKey()
37         {
38             tlog.Debug(tag, $"StaticResourceExtensionKey START");
39             try
40             {
41                 string key = staticRes.Key;
42                 staticRes.Key = key;
43                 Assert.AreEqual(key, staticRes.Key, "Should be equal");
44             }
45             catch (Exception e)
46             {
47                 tlog.Debug(tag, e.Message.ToString());
48                 Assert.Fail("Caught Exception : Failed!");
49             }
50             tlog.Debug(tag, $"StaticResourceExtensionKey END");
51         }
52     }
53 }