public void LongPressGesturegetCPtr() { tlog.Debug(tag, $"LongPressGesturegetCPtr START"); Gesture.StateType state = Gesture.StateType.Finished; LongPressGesture ret1 = new LongPressGesture(state); global::System.Runtime.InteropServices.HandleRef a = LongPressGesture.getCPtr(ret1); tlog.Debug(tag, $"LongPressGesturegetCPtr END (OK)"); Assert.Pass("LongPressGestureLocalPoint"); }
public void LongPressGestureGetLongPressGestureFromPtr() { tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr START"); Gesture.StateType state = Gesture.StateType.Finished; LongPressGesture ret1 = new LongPressGesture(state); LongPressGesture ret = LongPressGesture.GetLongPressGestureFromPtr(LongPressGesture.getCPtr(ret1).Handle); ret1.Dispose(); ret.Dispose(); tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr END (OK)"); Assert.Pass("LongPressGestureGetLongPressGestureFromPtr"); }
public void LongPressGestureGetLongPressGestureFromPtr() { tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr START"); using (LongPressGesture gestrue = new LongPressGesture(Gesture.StateType.Finished)) { var testingTarget = LongPressGesture.GetLongPressGestureFromPtr(LongPressGesture.getCPtr(gestrue).Handle); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <LongPressGesture>(testingTarget, "Should be an instance of Hover type."); testingTarget.Dispose(); } tlog.Debug(tag, $"LongPressGestureGetLongPressGestureFromPtr END (OK)"); Assert.Pass("LongPressGestureGetLongPressGestureFromPtr"); }
public void LongPressGesturegetCPtr() { tlog.Debug(tag, $"LongPressGesturegetCPtr START"); var testingTarget = new LongPressGesture(Gesture.StateType.Finished); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <LongPressGesture>(testingTarget, "Should be an instance of Hover type."); try { LongPressGesture.getCPtr(testingTarget); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"LongPressGesturegetCPtr END (OK)"); Assert.Pass("LongPressGestureLocalPoint"); }