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/Transition/TransitionItem")]
13 public class InternalTransitionItemTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("TransitionItem constructor.")]
32 [Property("SPEC", "Tizen.NUI.TransitionItem.TransitionItem C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void TransitionItemConstructor()
38 tlog.Debug(tag, $"TransitionItemConstructor START");
40 using (View view = new View())
42 var testingTarget = new TransitionItem(view.SwigCPtr.Handle, false);
43 Assert.IsNotNull(testingTarget, "Should be not null!");
44 Assert.IsInstanceOf<TransitionItem>(testingTarget, "Should be an Instance of TransitionItem!");
46 testingTarget.Dispose();
49 tlog.Debug(tag, $"TransitionItemConstructor END (OK)");
54 [Description("TransitionItem Assign.")]
55 [Property("SPEC", "Tizen.NUI.TransitionItem.Assign M")]
56 [Property("SPEC_URL", "-")]
57 [Property("CRITERIA", "MR")]
58 [Property("AUTHOR", "guowei.wang@samsung.com")]
59 public void TransitionItemAssign()
61 tlog.Debug(tag, $"TransitionItemAssign START");
63 using (View view = new View())
65 var testingTarget = new TransitionItem(view.SwigCPtr.Handle, false);
66 Assert.IsNotNull(testingTarget, "Should be not null!");
67 Assert.IsInstanceOf<TransitionItem>(testingTarget, "Should be an Instance of TransitionItem!");
71 testingTarget.Assign(testingTarget);
75 tlog.Debug(tag, e.Message.ToString());
76 Assert.Fail("Caught Exception: Failed!");
79 testingTarget.Dispose();
82 tlog.Debug(tag, $"TransitionItemAssign END (OK)");