public void RotationGestureDetectedSignalEmit()
        {
            tlog.Debug(tag, $"RotationGestureDetectedSignalEmit 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 RotationGestureDetectedSignal();
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <RotationGestureDetectedSignal>(testingTarget, "Should be an Instance of RotationGestureDetectedSignal!");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RotationGestureDetectedSignalEmit END (OK)");
        }
        public void RotationGestureDetectedSignalConnect()
        {
            tlog.Debug(tag, $"RotationGestureDetectedSignalConnect START");

            var testingTarget = new RotationGestureDetectedSignal();

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

            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, $"RotationGestureDetectedSignalConnect END (OK)");
        }
Exemple #3
0
        public void RotationGestureDetectorDetectedSignal()
        {
            tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal START");
            RotationGestureDetector a1 = new RotationGestureDetector();

            RotationGestureDetectedSignal b1 = a1.DetectedSignal();

            a1.Dispose();

            tlog.Debug(tag, $"RotationGestureDetectorDetectedSignal END (OK)");
            Assert.Pass("RotationGestureDetectorDetectedSignal");
        }
        public void RotationGestureDetectedSignalConstructor()
        {
            tlog.Debug(tag, $"RotationGestureDetectedSignalConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"RotationGestureDetectedSignalConstructor END (OK)");
        }
        public void RotationGestureDetectedSignalEmpty()
        {
            tlog.Debug(tag, $"RotationGestureDetectedSignalEmpty START");

            var testingTarget = new RotationGestureDetectedSignal();

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

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

            testingTarget.Dispose();

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