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/SignalConnectorType")]
13 public class InternalSignalConnectorTypeTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
31 [Description("SignalConnectorType constructor.")]
32 [Property("SPEC", "Tizen.NUI.SignalConnectorType.SignalConnectorType C")]
33 [Property("SPEC_URL", "-")]
34 [Property("CRITERIA", "CONSTR")]
35 [Property("AUTHOR", "guowei.wang@samsung.com")]
36 public void SignalConnectorTypeConstructor()
38 tlog.Debug(tag, $"SignalConnectorTypeConstructor START");
40 using (View view = new View())
42 using (TypeRegistration typeRegistration = new TypeRegistration(view.SwigCPtr.Handle, false))
44 using (ImageView imageView = new ImageView())
46 SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool func = new SWIGTYPE_p_f_p_Dali__BaseObject_p_Dali__ConnectionTrackerInterface_r_q_const__std__string_p_Dali__FunctorDelegate__bool(imageView.SwigCPtr.Handle);
47 var testingTarget = new SignalConnectorType(typeRegistration, "View", func);
48 Assert.IsNotNull(testingTarget, "Should be not null!");
49 Assert.IsInstanceOf<SignalConnectorType>(testingTarget, "Should be an Instance of SignalConnectorType!");
51 testingTarget.Dispose();
56 tlog.Debug(tag, $"SignalConnectorTypeConstructor END (OK)");