public void PanGestureDetectedSignalEmit() { tlog.Debug(tag, $"PanGestureDetectedSignalEmit 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 PanGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!"); try { testingTarget.Emit(view, new PanGesture(view.SwigCPtr.Handle, false)); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"PanGestureDetectedSignalEmit END (OK)"); }
public void PanGestureDetectedSignalConnect() { tlog.Debug(tag, $"PanGestureDetectedSignalConnect START"); var testingTarget = new PanGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!"); 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, $"PanGestureDetectedSignalConnect END (OK)"); }
public void PanGestureDetectedSignalConstructor() { tlog.Debug(tag, $"PanGestureDetectedSignalConstructor START"); using (View view = new View()) { var testingTarget = new PanGestureDetectedSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"PanGestureDetectedSignalConstructor END (OK)"); }
public void PanGestureDetectedSignalEmpty() { tlog.Debug(tag, $"PanGestureDetectedSignalEmpty START"); var testingTarget = new PanGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <PanGestureDetectedSignal>(testingTarget, "Should be an Instance of PanGestureDetectedSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"PanGestureDetectedSignalEmpty END (OK)"); }