[NUI] Update NUI.Devel to fix block and crash issues.
[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 InternalXamlDesignModeTest
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                 bool b1 = DesignMode.IsDesignModeEnabled;
40                 DesignMode.IsDesignModeEnabled = b1;
41             }
42             catch (Exception e)
43             {
44                 Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
45                 Assert.Fail("Caught Exception" + e.ToString());
46             }
47
48             tlog.Debug(tag, $"DesignModeIsDesignModeEnabled END (OK)");
49             Assert.Pass("DesignModeIsDesignModeEnabled");
50         }
51     }
52 }