public void LongPressGestureDetectorGetMaximumTouchesRequired() { tlog.Debug(tag, $"LongPressGestureDetectorGetMaximumTouchesRequired START"); LongPressGestureDetector a1 = new LongPressGestureDetector(3, 7); uint b1 = a1.GetMaximumTouchesRequired(); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorGetMaximumTouchesRequired END (OK)"); Assert.Pass("GetMaximumTouchesRequired"); }
public void LongPressGestureDetectorDetectedSignal() { tlog.Debug(tag, $"LongPressGestureDetectorDetectedSignal START"); LongPressGestureDetector a1 = new LongPressGestureDetector(); LongPressGestureDetectedSignal b1 = a1.DetectedSignal(); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorDetectedSignal END (OK)"); Assert.Pass("LongPressGestureDetectorDetectedSignal"); }
public void LongPressGestureDetectorGetLongPressGestureDetectorFromPtr() { tlog.Debug(tag, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr START"); LongPressGestureDetector a1 = new LongPressGestureDetector(); LongPressGestureDetector a2 = LongPressGestureDetector.GetLongPressGestureDetectorFromPtr(LongPressGestureDetector.getCPtr(a1).Handle); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr END (OK)"); Assert.Pass("GetLongPressGestureDetectorFromPtr"); }
public void LongPressGestureDetectorConstructorWithTouchesArea() { tlog.Debug(tag, $"LongPressGestureDetectorConstructorWithTouchesArea START"); var testingTarget = new LongPressGestureDetector(3, 7); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type."); testingTarget.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorConstructorWithTouchesArea END (OK)"); Assert.Pass("LongPressGestureDetectorConstructor"); }
public void LongPressGestureDetectorSetTouchesRequired() { tlog.Debug(tag, $"LongPressGestureDetectorSetTouchesRequired START"); LongPressGestureDetector a1 = new LongPressGestureDetector(7); a1.SetTouchesRequired(3); a1.SetTouchesRequired(1, 5); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorSetTouchesRequired END (OK)"); Assert.Pass("SetTouchesRequired"); }
public void LongPressGestureDetectorgetCPtr() { tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr START"); LongPressGestureDetector a1 = new LongPressGestureDetector(); global::System.Runtime.InteropServices.HandleRef c1 = LongPressGestureDetector.getCPtr(a1); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr END (OK)"); Assert.Pass("LongPressGestureDetectorgetCPtr"); }
public void LongPressGestureDetectorGetMaximumTouchesRequired() { var testingTarget = new LongPressGestureDetector(7); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type."); tlog.Debug(tag, "MaximumTouchesRequired : " + testingTarget.GetMaximumTouchesRequired()); testingTarget.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorGetMaximumTouchesRequired END (OK)"); Assert.Pass("GetMaximumTouchesRequired"); }
public void LongPressGestureDetectorConstructor() { tlog.Debug(tag, $"LongPressGestureDetectorConstructor START"); LongPressGestureDetector a1 = new LongPressGestureDetector(); LongPressGestureDetector a2 = new LongPressGestureDetector(7); LongPressGestureDetector a3 = new LongPressGestureDetector(3, 7); LongPressGestureDetector a4 = new LongPressGestureDetector(a3); a1.Dispose(); a2.Dispose(); a3.Dispose(); a4.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorConstructor END (OK)"); Assert.Pass("LongPressGestureDetectorConstructor"); }
public void GestureDetectorDetach() { tlog.Debug(tag, $"GestureDetectorDetach START"); LongPressGestureDetector ret = new LongPressGestureDetector(); Assert.IsNotNull(ret, "should be not null"); Assert.IsInstanceOf <GestureDetector>(ret, "should be an instance of testing target class!"); View view = new View(); ret.Attach(view); ret.Detach(view); ret.Dispose(); tlog.Debug(tag, $"GestureDetectorDetach END (OK)"); Assert.Pass("GestureDetectorDetach"); }
public void LongPressGestureDetectorDetected() { tlog.Debug(tag, $"LongPressGestureDetectorDetected START"); LongPressGestureDetector a1 = new LongPressGestureDetector(); a1.Detected += OnDetected; a1.Detected -= OnDetected; LongPressGestureDetector.DetectedEventArgs e = new LongPressGestureDetector.DetectedEventArgs(); object o = new object(); OnDetected(o, e); a1.Dispose(); tlog.Debug(tag, $"LongPressGestureDetectorDetected END (OK)"); Assert.Pass("LongPressGestureDetectorDetected"); }
public void GestureDetectorDetachAll() { tlog.Debug(tag, $"GestureDetectorDetachAll START"); var testingTarget = new LongPressGestureDetector(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "should be an instance of testing target class!"); using (View view = new View()) { testingTarget.Attach(view); testingTarget.DetachAll(); } testingTarget.Dispose(); tlog.Debug(tag, $"GestureDetectorDetachAll END (OK)"); Assert.Pass("GestureDetectorDetachAll"); }
public void GestureDetectorAttach() { tlog.Debug(tag, $"GestureDetectorAttach START"); var testingTarget = new LongPressGestureDetector(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "should be an instance of testing target class!"); using (View view = new View()) { Window.Instance.GetDefaultLayer().Add(view); testingTarget.Attach(view); testingTarget.Detach(view); Window.Instance.GetDefaultLayer().Remove(view); } testingTarget.Dispose(); tlog.Debug(tag, $"GestureDetectorAttach END (OK)"); Assert.Pass("GestureDetectorAttach"); }