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/DaliException")]
13 public class TSDaliException
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("DaliException constructor.")]
32 [Property("SPEC", "Tizen.NUI.DaliException.DaliException C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void DaliExceptionConstructor()
38 tlog.Debug(tag, $"DaliExceptionConstructor START");
40 var testingTarget = new DaliException("China", "Chinese speaking!");
41 Assert.IsNotNull(testingTarget, "Can't create success object DaliException.");
42 Assert.IsInstanceOf<DaliException>(testingTarget, "Should return DaliException instance.");
44 testingTarget.Dispose();
45 tlog.Debug(tag, $"DaliExceptionConstructor END (OK)");
50 //[Description("DaliException location.")]
51 //[Property("SPEC", "Tizen.NUI.DaliException.location A")]
52 //[Property("SPEC_URL", "-")]
53 //[Property("CRITERIA", "PRW")]
54 //[Property("AUTHOR", "guowei.wang@samsung.com")]
55 //public void DaliExceptionLocation()
57 // tlog.Debug(tag, $"DaliExceptionLocation START");
59 // var testingTarget = new DaliException("China", "Chinese speaking!");
60 // Assert.IsNotNull(testingTarget, "Can't create success object DaliException.");
61 // Assert.IsInstanceOf<DaliException>(testingTarget, "Should return DaliException instance.");
63 // testingTarget.location = "Korea";
64 // tlog.Debug(tag, "location : " + testingTarget.location);
66 // testingTarget.Dispose();
67 // tlog.Debug(tag, $"DaliExceptionLocation END (OK)");
72 [Description("DaliException condition.")]
73 [Property("SPEC", "Tizen.NUI.DaliException.DaliException A")]
74 [Property("SPEC_URL", "-")]
75 [Property("CRITERIA", "PRW")]
76 [Property("AUTHOR", "guowei.wang@samsung.com")]
77 public void DaliExceptionCondition()
79 tlog.Debug(tag, $"DaliExceptionCondition START");
81 var testingTarget = new DaliException("China", "Chinese speaking!");
82 Assert.IsNotNull(testingTarget, "Can't create success object DaliException.");
83 Assert.IsInstanceOf<DaliException>(testingTarget, "Should return DaliException instance.");
85 testingTarget.condition= "Korea speaking!";
86 tlog.Debug(tag, "condition : " + testingTarget.condition);
88 testingTarget.Dispose();
89 tlog.Debug(tag, $"DaliExceptionCondition END (OK)");