public void GetstureGetGestureFromPtr() { tlog.Debug(tag, $"GetstureGetGestureFromPtr START"); var testingTarget = Gesture.GetGestureFromPtr(longPressGesture.SwigCPtr.Handle); Assert.IsNotNull(testingTarget, "Can't create success object Gesture"); Assert.IsInstanceOf <Gesture>(testingTarget, "Should be an instance of Gesture type."); testingTarget.Dispose(); tlog.Debug(tag, $"GetstureGetGestureFromPtr END (OK)"); Assert.Pass("GetstureGetGestureFromPtr"); }
public void GetstureGetGestureFromPtr() { tlog.Debug(tag, $"GetstureGetGestureFromPtr START"); var longPressGesture = new LongPressGesture(Gesture.StateType.Cancelled); var gesture = new Gesture(longPressGesture); Gesture ret = Gesture.GetGestureFromPtr(Gesture.getCPtr(gesture).Handle); Assert.IsNotNull(ret, "Can't create success object Gesture"); Assert.IsInstanceOf <Gesture>(ret, "Should be an instance of Gesture type."); ret.Dispose(); gesture.Dispose(); longPressGesture.Dispose(); tlog.Debug(tag, $"GetstureGetGestureFromPtr END (OK)"); Assert.Pass("GetstureGetGestureFromPtr"); }