public void TextLabelSignalEmit() { tlog.Debug(tag, $"TextLabelSignalEmit START"); var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); using (TextLabel label = new TextLabel()) { var testingTarget = new TextLabelSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!"); try { testingTarget.Emit(label); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"TextLabelSignalEmit END (OK)"); }
public void TextLabelSignalConnect() { tlog.Debug(tag, $"TextLabelSignalConnect START"); var testingTarget = new TextLabelSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!"); try { dummyCallback callback = OnDummyCallback; testingTarget.Connect(callback); testingTarget.Disconnect(callback); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"TextLabelSignalConnect END (OK)"); }
internal TextLabelSignal AnchorClickedSignal() { TextLabelSignal ret = new TextLabelSignal(Interop.TextLabel.AnchorClickedSignal(SwigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void TextLabelSignalConstructor() { tlog.Debug(tag, $"TextLabelSignalConstructor START"); using (View view = new View()) { var testingTarget = new TextLabelSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"TextLabelSignalConstructor END (OK)"); }
public void TextLabelSignalEmpty() { tlog.Debug(tag, $"TextLabelSignalEmpty START"); var testingTarget = new TextLabelSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TextLabelSignal>(testingTarget, "Should be an Instance of TextLabelSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"TextLabelSignalEmpty END (OK)"); }