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/Widget/WidgetImplPtr")]
13 public class InternalWidgetImplPtrTest
15 private const string tag = "NUITEST";
17 internal class MyWidgetImplPtr : WidgetImplPtr
19 public MyWidgetImplPtr() : base()
26 tlog.Info(tag, "Init() is called!");
32 tlog.Info(tag, "Destroy() is called!");
37 [Description("WidgetImplPtr Constructor.")]
38 [Property("SPEC", "Tizen.NUI.WidgetImplPtr.WidgetImplPtr C")]
39 [Property("SPEC_URL", "-")]
40 [Property("CRITERIA", "CONSTR")]
41 [Property("AUTHOR", "guowei.wang@samsung.com")]
42 public void WidgetImplPtrConstructorWithIntPtr()
44 tlog.Debug(tag, $"WidgetImplPtrConstructorWithIntPtr START");
46 Widget widget = new Widget();
48 var testingTarget = new WidgetImplPtr(widget.GetIntPtr());
49 Assert.IsNotNull(testingTarget, "Can't create success object WidgetImplPtr");
50 Assert.IsInstanceOf<WidgetImplPtr>(testingTarget, "Should be an instance of WidgetImplPtr type.");
54 tlog.Debug(tag, $"WidgetImplPtrConstructorWithIntPtr END (OK)");
59 [Description("WidgetImplPtr Constructor.")]
60 [Property("SPEC", "Tizen.NUI.WidgetImplPtr.WidgetImplPtr C")]
61 [Property("SPEC_URL", "-")]
62 [Property("CRITERIA", "MR")]
63 [Property("AUTHOR", "guowei.wang@samsung.com")]
64 public void WidgetImplPtrConstructor()
66 tlog.Debug(tag, $"WidgetImplPtrConstructor START");
68 Widget widget = new Widget();
70 var testingTarget = new MyWidgetImplPtr();
71 Assert.IsNotNull(testingTarget, "Can't create success object WidgetImplPtr");
72 Assert.IsInstanceOf<WidgetImplPtr>(testingTarget, "Should be an instance of WidgetImplPtr type.");
76 tlog.Debug(tag, $"WidgetImplPtrConstructor END (OK)");