Example #1
0
        public void KeyInputFocusSignalEmit()
        {
            tlog.Debug(tag, $"KeyInputFocusSignalEmit 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 KeyInputFocusSignal();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"KeyInputFocusSignalEmit END (OK)");
        }
Example #2
0
        public void KeyInputFocusSignalConnect()
        {
            tlog.Debug(tag, $"KeyInputFocusSignalConnect START");

            var testingTarget = new KeyInputFocusSignal();

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

            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, $"KeyInputFocusSignalConnect END (OK)");
        }
Example #3
0
        public void KeyInputFocusSignalConstructor()
        {
            tlog.Debug(tag, $"KeyInputFocusSignalConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"KeyInputFocusSignalConstructor END (OK)");
        }
Example #4
0
        public void KeyInputFocusSignalEmpty()
        {
            tlog.Debug(tag, $"KeyInputFocusSignalEmpty START");

            var testingTarget = new KeyInputFocusSignal();

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

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

            testingTarget.Dispose();

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