Esempio n. 1
0
        public void KeyboardResizedSignalTypeConnect()
        {
            tlog.Debug(tag, $"KeyboardResizedSignalTypeConnect START");

            var testingTarget = new KeyboardResizedSignalType();

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

            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, $"KeyboardResizedSignalTypeConnect END (OK)");
        }
Esempio n. 2
0
        public void KeyboardResizedSignalTypeEmit()
        {
            tlog.Debug(tag, $"KeyboardResizedSignalTypeEmit 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 KeyboardResizedSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"KeyboardResizedSignalTypeEmit END (OK)");
        }
Esempio n. 3
0
        public void KeyboardResizedSignalTypeConstructor()
        {
            tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor START");

            var testingTarget = new KeyboardResizedSignalType();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor END (OK)");
        }
Esempio n. 4
0
        public void KeyboardResizedSignalTypeConstructor()
        {
            tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"KeyboardResizedSignalTypeConstructor END (OK)");
        }
Esempio n. 5
0
        public void KeyboardResizedSignalTypeEmpty()
        {
            tlog.Debug(tag, $"KeyboardResizedSignalTypeEmpty START");

            var testingTarget = new KeyboardResizedSignalType();

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

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

            testingTarget.Dispose();

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