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