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 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 LongPressGestureDetectorGetLongPressGestureDetectorFromPtr() { tlog.Debug(tag, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr START"); using (LongPressGestureDetector detector = new LongPressGestureDetector(3)) { var testingTarget = LongPressGestureDetector.GetLongPressGestureDetectorFromPtr(LongPressGestureDetector.getCPtr(detector).Handle); 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, $"LongPressGestureDetectorGetLongPressGestureDetectorFromPtr END (OK)"); Assert.Pass("GetLongPressGestureDetectorFromPtr"); }
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"); }