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/Application/NUIComponentCoreBackend")]
13 public class InternalNUIComponentCoreBackendTest
15 private const string tag = "NUITEST";
16 private string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
21 tlog.Info(tag, "Init() is called!");
27 tlog.Info(tag, "Destroy() is called!");
31 [Description("NUIComponentCoreBackend constructor")]
32 [Property("AUTHOR", "guowei.wang@samsung.com")]
33 public void NUIComponentCoreBackendConstructor()
35 tlog.Debug(tag, $"NUIComponentCoreBackendConstructor START");
37 var testingTarget = new NUIComponentCoreBackend();
38 Assert.IsNotNull(testingTarget, "should be not null");
39 Assert.IsInstanceOf<NUIComponentCoreBackend>(testingTarget, "should be an instance of testing target class!");
41 testingTarget.Dispose();
42 tlog.Debug(tag, $"NUIComponentCoreBackendConstructor END (OK)");
46 [Description("NUIComponentCoreBackend constructor with stylesheet")]
47 [Property("AUTHOR", "guowei.wang@samsung.com")]
48 public void NUIComponentCoreBackendConstructorWithStylesheet()
50 tlog.Debug(tag, $"NUIComponentCoreBackendConstructorWithStylesheet START");
52 var dummy = resource + "/style/Test_Style_Manager.json";
53 var testingTarget = new NUIComponentCoreBackend(dummy);
54 Assert.IsNotNull(testingTarget, "should be not null");
55 Assert.IsInstanceOf<NUIComponentCoreBackend>(testingTarget, "should be an instance of testing target class!");
57 testingTarget.Dispose();
58 tlog.Debug(tag, $"NUIComponentCoreBackendConstructorWithStylesheet END (OK)");
62 [Description("NUIComponentCoreBackend dispose")]
63 [Property("AUTHOR", "guowei.wang@samsung.com")]
64 public void NUIComponentCoreBackendDispose()
66 tlog.Debug(tag, $"NUIComponentCoreBackendDispose START");
68 var testingTarget = new NUIComponentCoreBackend();
69 Assert.IsNotNull(testingTarget, "should be not null");
70 Assert.IsInstanceOf<NUIComponentCoreBackend>(testingTarget, "should be an instance of testing target class!");
74 testingTarget.Dispose();
78 tlog.Error(tag, "Caught Exception" + e.ToString());
79 Assert.Fail("Caught Exception" + e.ToString());
82 tlog.Debug(tag, $"NUIComponentCoreBackendDispose END (OK)");
86 [Description("NUIComponentCoreBackend exit")]
87 [Property("AUTHOR", "guowei.wang@samsung.com")]
88 public void NUIComponentCoreBackendExit()
90 tlog.Debug(tag, $"NUIComponentCoreBackendExit START");
92 var testingTarget = new NUIComponentCoreBackend();
93 Assert.IsNotNull(testingTarget, "should be not null");
94 Assert.IsInstanceOf<NUIComponentCoreBackend>(testingTarget, "should be an instance of testing target class!");
102 tlog.Error(tag, "Caught Exception" + e.ToString());
103 Assert.Fail("Caught Exception" + e.ToString());
106 testingTarget.Dispose();
107 tlog.Debug(tag, $"NUIComponentCoreBackendExit END (OK)");