Esempio n. 1
0
        public void KeyboardTypeSignalTypeEmit()
        {
            tlog.Debug(tag, $"KeyboardTypeSignalTypeEmit 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 KeyboardTypeSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"KeyboardTypeSignalTypeEmit END (OK)");
        }
Esempio n. 2
0
        public void KeyboardTypeSignalTypeConnect()
        {
            tlog.Debug(tag, $"KeyboardTypeSignalTypeConnect START");

            var testingTarget = new KeyboardTypeSignalType();

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

            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, $"KeyboardTypeSignalTypeConnect END (OK)");
        }
Esempio n. 3
0
        public void KeyboardTypeSignalTypeConstructor()
        {
            tlog.Debug(tag, $"KeyboardTypeSignalTypeConstructor START");

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

                testingTarget.Dispose();
            }

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

            var testingTarget = new KeyboardTypeSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"KeyboardTypeSignalTypeEmpty END (OK)");
        }
Esempio n. 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardTypeSignalType obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }