public void ScrollStateChangedSignalEmit() { tlog.Debug(tag, $"ScrollStateChangedSignalEmit 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 (View view = new View()) { var testingTarget = new ScrollStateChangedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!"); try { testingTarget.Emit(view); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollStateChangedSignalEmit END (OK)"); }
public void ScrollStateChangedSignalConnect() { tlog.Debug(tag, $"ScrollStateChangedSignalConnect START"); var testingTarget = new ScrollStateChangedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!"); 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, $"ScrollStateChangedSignalConnect END (OK)"); }
internal ScrollStateChangedSignal ScrollStateChangedSignal(TextEditor textEditor) { ScrollStateChangedSignal ret = new ScrollStateChangedSignal(Interop.TextEditor.ScrollStateChangedSignal(TextEditor.getCPtr(textEditor)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void ScrollStateChangedSignalConstructor() { tlog.Debug(tag, $"ScrollStateChangedSignalConstructor START"); using (View view = new View()) { var testingTarget = new ScrollStateChangedSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollStateChangedSignal>(testingTarget, "Should be an ScrollStateChangedSignal of WheelSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ScrollStateChangedSignalConstructor END (OK)"); }
public void ScrollStateChangedSignalEmpty() { tlog.Debug(tag, $"ScrollStateChangedSignalEmpty START"); var testingTarget = new ScrollStateChangedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ScrollStateChangedSignal>(testingTarget, "Should be an Instance of ScrollStateChangedSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ScrollStateChangedSignalEmpty END (OK)"); }