[NUI] Add TCs for NUI.Components.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Components.Devel.Tests / testcase / Style / TSPopupStyle.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI;
5 using Tizen.NUI.Components;
6 using Tizen.NUI.BaseComponents;
7 using Tizen.NUI.Binding;
8
9 namespace Tizen.NUI.Components.Devel.Tests
10 {
11     using tlog = Tizen.Log;
12
13     [TestFixture]
14     [Description("Style/PopupStyle")]
15     public class PopupStyleTest
16     {
17         private const string tag = "NUITEST";
18
19         [SetUp]
20         public void Init()
21         {
22             tlog.Info(tag, "Init() is called!");
23         }
24
25         [TearDown]
26         public void Destroy()
27         {
28             tlog.Info(tag, "Destroy() is called!");
29         }
30         [Test]
31         [Category("P1")]
32         [Description("PopupStyle constructor.")]
33         [Property("SPEC", "Tizen.NUI.Components.PopupStyle.PopupStyle C")]
34         [Property("SPEC_URL", "-")]
35         [Property("CRITERIA", "CONSTR")]
36         [Property("COVPARAM", "")]
37         [Property("AUTHOR", "guowei.wang@samsung.com")]
38         public void PopupStyleConstructor()
39         {
40             tlog.Debug(tag, $"PopupStyleConstructor START");
41
42             PopupStyle style = new PopupStyle()
43             {
44                 BackgroundColor = Color.Cyan,
45             };
46             var testingTarget = new PopupStyle(style);
47             Assert.IsNotNull(testingTarget, "null handle");
48             Assert.IsInstanceOf<PopupStyle>(testingTarget, "Should return PopupStyle instance.");
49
50             testingTarget.Dispose();
51             tlog.Debug(tag, $"PopupStyleConstructor END (OK)");
52         }
53     }
54 }