3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("internal/Common/ViewWrapperImpl")]
13 public class InternalViewWrapperImplTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
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()
39 tlog.Debug(tag, $"ViewWrapperImplConstructor START");
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!");
45 testingTarget.Dispose();
47 testingTarget.Dispose();
48 tlog.Debug(tag, $"ViewWrapperImplConstructor END (OK)");
53 //[Description("ViewWrapperImpl New.")]
54 //[Property("SPEC", "Tizen.NUI.ViewWrapperImpl.New M")]
55 //[Property("SPEC_URL", "-")]
56 //[Property("CRITERIA", "MR")]
57 //[Property("COVPARAM", "")]
58 //[Property("AUTHOR", "guowei.wang@samsung.com")]
59 //public void ViewWrapperImplNew()
61 // tlog.Debug(tag, $"ViewWrapperImplNew START");
63 // using (ViewWrapperImpl impl = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault))
65 // var testingTarget = ViewWrapperImpl.New("CustomView", impl);
66 // Assert.IsNotNull(testingTarget, "should be not null");
67 // Assert.IsInstanceOf<ViewWrapper>(testingTarget, "should be an instance of testing target class!");
69 // testingTarget.Dispose();
72 // tlog.Debug(tag, $"ViewWrapperImplNew END (OK)");
77 //[Description("ViewWrapperImpl ApplyThemeStyle.")]
78 //[Property("SPEC", "Tizen.NUI.ViewWrapperImpl.ApplyThemeStyle M")]
79 //[Property("SPEC_URL", "-")]
80 //[Property("CRITERIA", "MR")]
81 //[Property("COVPARAM", "")]
82 //[Property("AUTHOR", "guowei.wang@samsung.com")]
83 //public void ViewWrapperImplApplyThemeStyle()
85 // tlog.Debug(tag, $"ViewWrapperImplApplyThemeStyle START");
87 // var testingTarget = new ViewWrapperImpl(CustomViewBehaviour.ViewBehaviourDefault);
88 // Assert.IsNotNull(testingTarget, "should be not null");
89 // Assert.IsInstanceOf<ViewWrapperImpl>(testingTarget, "should be an instance of testing target class!");
93 // testingTarget.ApplyThemeStyle();
95 // catch (Exception e)
97 // tlog.Debug(tag, e.Message.ToString());
98 // Assert.Fail("Caught Exception : Failed!");
101 // testingTarget.Dispose();
102 // tlog.Debug(tag, $"ViewWrapperImplApplyThemeStyle END (OK)");
107 [Description("ViewWrapperImpl ViewBehaviourFlagCount.")]
108 [Property("SPEC", "Tizen.NUI.ViewWrapperImpl.ViewBehaviourFlagCount A")]
109 [Property("SPEC_URL", "-")]
110 [Property("CRITERIA", "PRO")]
111 [Property("COVPARAM", "")]
112 [Property("AUTHOR", "guowei.wang@samsung.com")]
113 public void ViewWrapperImplViewBehaviourFlagCount()
115 tlog.Debug(tag, $"ViewWrapperImplViewBehaviourFlagCount START");
117 var result = ViewWrapperImpl.ViewBehaviourFlagCount;
118 tlog.Debug(tag, "ViewBehaviourFlagCount : " + result);
120 tlog.Debug(tag, $"ViewWrapperImplViewBehaviourFlagCount END (OK)");