3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
8 namespace Tizen.NUI.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("internal/EXaml/Action/RootAction")]
14 public class InternalRootActionTest
16 private const string tag = "NUITEST";
18 internal class MyRootAction : Tizen.NUI.EXaml.Action
20 public void Init() { }
22 public void OnActive() { }
24 EXaml.Action EXaml.Action.DealChar(char c)
33 tlog.Info(tag, "Init() is called!");
39 tlog.Info(tag, "Destroy() is called!");
44 [Description("RootAction constructor.")]
45 [Property("SPEC", "Tizen.NUI.EXaml.RootAction.RootAction C")]
46 [Property("SPEC_URL", "-")]
47 [Property("CRITERIA", "CONSTR")]
48 [Property("AUTHOR", "guowei.wang@samsung.com")]
49 public void EXamlRootActionConstructor()
51 tlog.Debug(tag, $"EXamlRootActionConstructor START");
53 var globalDataList = new GlobalDataList();
55 var testingTarget = new Tizen.NUI.EXaml.RootAction(globalDataList);
56 Assert.IsNotNull(testingTarget, "Can't create success object RootAction");
57 Assert.IsInstanceOf<Tizen.NUI.EXaml.RootAction>(testingTarget, "Should be an instance of RootAction type.");
59 tlog.Debug(tag, $"EXamlRootActionConstructor END (OK)");
64 [Description("RootAction Init.")]
65 [Property("SPEC", "Tizen.NUI.EXaml.RootAction.Init M")]
66 [Property("SPEC_URL", "-")]
67 [Property("CRITERIA", "MR")]
68 [Property("AUTHOR", "guowei.wang@samsung.com")]
69 public void EXamlRootActionInit()
71 tlog.Debug(tag, $"EXamlRootActionInit START");
73 var globalDataList = new GlobalDataList();
75 var testingTarget = new Tizen.NUI.EXaml.RootAction(globalDataList);
76 Assert.IsNotNull(testingTarget, "Can't create success object RootAction");
77 Assert.IsInstanceOf<Tizen.NUI.EXaml.RootAction>(testingTarget, "Should be an instance of RootAction type.");
85 tlog.Debug(tag, e.Message.ToString());
86 Assert.Fail("Caught Exception : Failed!");
89 tlog.Debug(tag, $"EXamlRootActionInit END (OK)");
94 [Description("RootAction DealChar.")]
95 [Property("SPEC", "Tizen.NUI.EXaml.RootAction.DealChar M")]
96 [Property("SPEC_URL", "-")]
97 [Property("CRITERIA", "MR")]
98 [Property("AUTHOR", "guowei.wang@samsung.com")]
99 public void EXamlRootActionDealChar()
101 tlog.Debug(tag, $"EXamlRootActionDealChar START");
103 var globalDataList = new GlobalDataList();
105 var testingTarget = new Tizen.NUI.EXaml.RootAction(globalDataList);
106 Assert.IsNotNull(testingTarget, "Can't create success object RootAction");
107 Assert.IsInstanceOf<Tizen.NUI.EXaml.RootAction>(testingTarget, "Should be an instance of RootAction type.");
111 testingTarget.DealChar('(');
115 tlog.Debug(tag, e.Message.ToString());
116 Assert.Fail("Caught Exception : Failed!");
119 tlog.Debug(tag, $"EXamlRootActionDealChar END (OK)");