Example #1
0
        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");
        }
Example #2
0
        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");
        }