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