[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Xaml / TSDesignMode.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("internal/Xaml/DesignMode")]
11     public class InternalDesignModeTest
12     {
13         private const string tag = "NUITEST";
14
15         [SetUp]
16         public void Init()
17         {
18             tlog.Info(tag, "Init() is called!");
19         }
20
21         [TearDown]
22         public void Destroy()
23         {
24             tlog.Info(tag, "Destroy() is called!");
25         }
26
27         [Test]
28         [Category("P1")]
29         [Description("DesignMode IsDesignModeEnabled")]
30         [Property("SPEC", "Tizen.NUI.DesignMode.IsDesignModeEnabled A")]
31         [Property("SPEC_URL", "-")]
32         [Property("CRITERIA", "PRW")]
33         public void DesignModeIsDesignModeEnabled()
34         {
35             tlog.Debug(tag, $"DesignModeIsDesignModeEnabled START");
36
37             try
38             {
39                 var mode = DesignMode.IsDesignModeEnabled;
40                 DesignMode.IsDesignModeEnabled = mode;
41                 Assert.AreEqual(mode, DesignMode.IsDesignModeEnabled, "Should be equal");
42             }
43             catch (Exception e)
44             {
45                 tlog.Debug(tag, e.Message.ToString());
46                 Assert.Fail("Caught Exception : Failed!");
47             }
48
49             tlog.Debug(tag, $"DesignModeIsDesignModeEnabled END");
50         }
51     }
52 }