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