Ejemplo n.º 1
0
        public void PinchGestureDetectedSignalConnect()
        {
            tlog.Debug(tag, $"PinchGestureDetectedSignalConnect START");

            var testingTarget = new PinchGestureDetectedSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");

            try
            {
                dummyCallback callback = OnDummyCallback;
                testingTarget.Connect(callback);
                testingTarget.Disconnect(callback);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"PinchGestureDetectedSignalConnect END (OK)");
        }
Ejemplo n.º 2
0
        public void PinchGestureDetectedSignalEmit()
        {
            tlog.Debug(tag, $"PinchGestureDetectedSignalEmit START");
            var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
            var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;

            tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");

            using (View view = new View())
            {
                var testingTarget = new PinchGestureDetectedSignal();
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");

                try
                {
                    testingTarget.Emit(view, new PinchGesture(view.SwigCPtr.Handle, false));
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"PinchGestureDetectedSignalEmit END (OK)");
        }
Ejemplo n.º 3
0
        public void PinchGestureDetectorDetectedSignal()
        {
            tlog.Debug(tag, $"PinchGestureDetectorDetectedSignal START");
            PinchGestureDetector a1 = new PinchGestureDetector();

            PinchGestureDetectedSignal b1 = a1.DetectedSignal();

            a1.Dispose();

            tlog.Debug(tag, $"PinchGestureDetectorDetectedSignal END (OK)");
            Assert.Pass("PinchGestureDetectorDetectedSignal");
        }
Ejemplo n.º 4
0
        public void PinchGestureDetectedSignalConstructor()
        {
            tlog.Debug(tag, $"PinchGestureDetectedSignalConstructor START");

            using (View view = new View())
            {
                var testingTarget = new PinchGestureDetectedSignal(view.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"PinchGestureDetectedSignalConstructor END (OK)");
        }
Ejemplo n.º 5
0
        public void PinchGestureDetectedSignalEmpty()
        {
            tlog.Debug(tag, $"PinchGestureDetectedSignalEmpty START");

            var testingTarget = new PinchGestureDetectedSignal();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <PinchGestureDetectedSignal>(testingTarget, "Should be an Instance of PinchGestureDetectedSignal!");

            try
            {
                testingTarget.Empty();
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"PinchGestureDetectedSignalEmpty END (OK)");
        }