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/Utility/CreateWidgetFunction")]
13 public class InternalCreateWidgetFunctionTest
15 private const string tag = "NUITEST";
17 internal class MyCreateWidgetFunction : CreateWidgetFunction
19 public MyCreateWidgetFunction() : base()
27 tlog.Info(tag, "Init() is called!");
33 tlog.Info(tag, "Destroy() is called!");
38 [Description("CreateWidgetFunction constructor.")]
39 [Property("SPEC", "Tizen.NUI.CreateWidgetFunction.CreateWidgetFunction C")]
40 [Property("SPEC_URL", "-")]
41 [Property("CRITERIA", "CONSTR")]
42 [Property("AUTHOR", "guowei.wang@samsung.com")]
43 public void CreateWidgetFunctionConstructor()
45 tlog.Debug(tag, $"CreateWidgetFunctionConstructor START");
47 var testingTarget = new MyCreateWidgetFunction();
48 Assert.IsNotNull(testingTarget, "Should be not null!");
49 Assert.IsInstanceOf<CreateWidgetFunction>(testingTarget, "Should be an Instance of CreateWidgetFunction!");
51 tlog.Debug(tag, $"CreateWidgetFunctionConstructor END (OK)");
56 [Description("CreateWidgetFunction constructor. With IntPtr.")]
57 [Property("SPEC", "Tizen.NUI.CreateWidgetFunction.CreateWidgetFunction C")]
58 [Property("SPEC_URL", "-")]
59 [Property("CRITERIA", "CONSTR")]
60 [Property("AUTHOR", "guowei.wang@samsung.com")]
61 public void CreateWidgetFunctionConstructorWithIntPtr()
63 tlog.Debug(tag, $"CreateWidgetFunctionConstructorWithIntPtr START");
65 using (View view = new View())
67 var testingTarget = new CreateWidgetFunction(view.SwigCPtr.Handle);
68 Assert.IsNotNull(testingTarget, "Should be not null!");
69 Assert.IsInstanceOf<CreateWidgetFunction>(testingTarget, "Should be an Instance of CreateWidgetFunction!");
72 tlog.Debug(tag, $"CreateWidgetFunctionConstructorWithIntPtr END (OK)");