public void LongPressGestureDetectorgetCPtr() { tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr START"); using (LongPressGestureDetector detector = new LongPressGestureDetector()) { var testingTarget = LongPressGestureDetector.DownCast(detector); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type."); try { LongPressGestureDetector.getCPtr(testingTarget); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"LongPressGestureDetectorgetCPtr END (OK)"); Assert.Pass("LongPressGestureDetectorgetCPtr"); }
public void LongPressGestureDetectorDownCast() { tlog.Debug(tag, $"LongPressGestureDetectorDownCast START"); BaseHandle handle = new BaseHandle(); LongPressGestureDetector a1 = LongPressGestureDetector.DownCast(handle); tlog.Debug(tag, $"LongPressGestureDetectorDownCast END (OK)"); Assert.Pass("LongPressGestureDetectorDownCast"); }
public void LongPressGestureDetectorDownCast() { tlog.Debug(tag, $"LongPressGestureDetectorDownCast START"); using (LongPressGestureDetector detector = new LongPressGestureDetector()) { var testingTarget = LongPressGestureDetector.DownCast(detector); Assert.IsNotNull(testingTarget, "Can't create success object LongPressGestureDetector"); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type."); testingTarget.Dispose(); } tlog.Debug(tag, $"LongPressGestureDetectorDownCast END (OK)"); Assert.Pass("LongPressGestureDetectorDownCast"); }
public void LongPressGestureDetectorDetected() { tlog.Debug(tag, $"LongPressGestureDetectorDetected START"); using (LongPressGestureDetector detector = new LongPressGestureDetector()) { var testingTarget = LongPressGestureDetector.DownCast(detector); Assert.IsInstanceOf <LongPressGestureDetector>(testingTarget, "Should be an instance of LongPressGestureDetector type."); testingTarget.Detected += OnDetected; testingTarget.Detected -= OnDetected; testingTarget.Dispose(); } tlog.Debug(tag, $"LongPressGestureDetectorDetected END (OK)"); Assert.Pass("LongPressGestureDetectorDetected"); }