public void TapGestureDetectedSignalConnect() { tlog.Debug(tag, $"TapGestureDetectedSignalConnect START"); var testingTarget = new TapGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!"); 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, $"TapGestureDetectedSignalConnect END (OK)"); }
public void TapGestureDetectedSignalEmit() { tlog.Debug(tag, $"TapGestureDetectedSignalEmit 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 TapGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!"); try { testingTarget.Emit(label, new TapGesture()); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"TapGestureDetectedSignalEmit END (OK)"); }
public void TapGestureDetectorDetectedSignal() { tlog.Debug(tag, $"TapGestureDetectorDetectedSignal START"); TapGestureDetector a1 = new TapGestureDetector(); TapGestureDetectedSignal b1 = a1.DetectedSignal(); tlog.Debug(tag, $"TapGestureDetectorDetectedSignal END (OK)"); Assert.Pass("TapGestureDetectorDetectedSignal"); }
public void TapGestureDetectedSignalConstructor() { tlog.Debug(tag, $"TapGestureDetectedSignalConstructor START"); using (View view = new View()) { var testingTarget = new TapGestureDetectedSignal(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!"); testingTarget.Dispose(); } tlog.Debug(tag, $"TapGestureDetectedSignalConstructor END (OK)"); }
public void TapGestureDetectedSignalEmpty() { tlog.Debug(tag, $"TapGestureDetectedSignalEmpty START"); var testingTarget = new TapGestureDetectedSignal(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <TapGestureDetectedSignal>(testingTarget, "Should be an Instance of TapGestureDetectedSignal!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"TapGestureDetectedSignalEmpty END (OK)"); }