[NUI][NUI.Devel] Update line coverage TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / internal / Common / TSViewWrapperImpl.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("internal/Common/ViewWrapperImpl")]
13     public class InternalViewWrapperImplTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         [Test]
30         [Category("P1")]
31         [Description("ViewWrapperImpl constructor.")]
32         [Property("SPEC", "Tizen.NUI.ViewWrapperImpl.ViewWrapperImpl M")]
33         [Property("SPEC_URL", "-")]
34         [Property("CRITERIA", "MR")]
35         [Property("COVPARAM", "")]
36         [Property("AUTHOR", "guowei.wang@samsung.com")]
37         public void ViewWrapperImplConstructor()
38         {
39             tlog.Debug(tag, $"ViewWrapperImplConstructor START");
40
41             var testingTarget = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault);
42             Assert.IsNotNull(testingTarget, "should be not null");
43             Assert.IsInstanceOf<ViewWrapperImpl>(testingTarget, "should be an instance of testing target class!");
44
45             testingTarget.Dispose();
46             tlog.Debug(tag, $"ViewWrapperImplConstructor END (OK)");
47         }
48
49         [Test]
50         [Category("P1")]
51         [Description("ViewWrapperImpl ViewBehaviourFlagCount.")]
52         [Property("SPEC", "Tizen.NUI.ViewWrapperImpl.ViewBehaviourFlagCount A")]
53         [Property("SPEC_URL", "-")]
54         [Property("CRITERIA", "PRO")]
55         [Property("COVPARAM", "")]
56         [Property("AUTHOR", "guowei.wang@samsung.com")]
57         public void ViewWrapperImplViewBehaviourFlagCount()
58         {
59             tlog.Debug(tag, $"ViewWrapperImplViewBehaviourFlagCount START");
60
61             var result = ViewWrapperImpl.ViewBehaviourFlagCount;
62             tlog.Debug(tag, "ViewBehaviourFlagCount : " + result);
63
64             tlog.Debug(tag, $"ViewWrapperImplViewBehaviourFlagCount END (OK)");
65         }
66     }
67 }