예제 #1
0
        public void WidgetApplicationgetCPtr()
        {
            tlog.Debug(tag, $"WidgetApplicationgetCPtr START");

            Widget widget = new Widget();

            var testingTarget = new WidgetApplication(widget.GetIntPtr(), false);

            Assert.IsNotNull(testingTarget, "Can't create success object WidgetApplication");
            Assert.IsInstanceOf <WidgetApplication>(testingTarget, "Should be an instance of WidgetApplication type.");

            try
            {
                WidgetApplication.getCPtr(testingTarget);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            widget.Dispose();
            widget = null;

            testingTarget.Dispose();
            testingTarget = null;
            tlog.Debug(tag, $"WidgetApplicationgetCPtr END (OK)");
        }
예제 #2
0
 public void Emit(WidgetApplication arg)
 {
     NDalicManualPINVOKE.AppSignalType_Emit(swigCPtr, WidgetApplication.getCPtr(arg));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }