コード例 #1
0
        public void AccessibilityFocusOvershotSignalConstructor()
        {
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor START");

            var testingTarget = new AccessibilityFocusOvershotSignal();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor END (OK)");
        }
コード例 #2
0
        public void AccessibilityFocusOvershotSignalGetConnectionCount()
        {
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount START");

            var testingTarget = new AccessibilityFocusOvershotSignal();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");

            var result = testingTarget.GetConnectionCount();

            Assert.IsTrue(result == 0, "result should be 0");

            testingTarget.Dispose();
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount END (OK)");
        }
コード例 #3
0
        public void AccessibilityFocusOvershotSignalEmpty()
        {
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty START");

            var testingTarget = new AccessibilityFocusOvershotSignal();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");

            var result = testingTarget.Empty();

            Assert.IsTrue(result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty END (OK)");
        }
コード例 #4
0
        public void AccessibilityFocusOvershotSignalConnection()
        {
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection START");

            var testingTarget = new AccessibilityFocusOvershotSignal();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");

            dummyCallback callback = OnDummyCallback;

            testingTarget.Connect(callback);
            testingTarget.Disconnect(callback);
            testingTarget.Dispose();

            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection END (OK)");
        }
コード例 #5
0
        public void AccessibilityFocusOvershotSignalEmit()
        {
            tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmit 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}");

            var testingTarget = new AccessibilityFocusOvershotSignal();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");

            View dummy = new View();

            testingTarget.Emit(dummy, Accessibility.AccessibilityManager.FocusOvershotDirection.Previous);

            testingTarget.Dispose();
            dummy.Dispose();

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