Пример #1
0
        public void TextFieldSignalEmit()
        {
            tlog.Debug(tag, $"TextFieldSignalEmit 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 (TextField field = new TextField())
            {
                var testingTarget = new TextFieldSignal();
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <TextFieldSignal>(testingTarget, "Should be an Instance of TextFieldSignal!");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"TouchDataSignalEmit END (OK)");
        }
Пример #2
0
        public void TextFieldSignalConnect()
        {
            tlog.Debug(tag, $"TextFieldSignalConnect START");

            var testingTarget = new TextFieldSignal();

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

            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, $"TextFieldSignalConnect END (OK)");
        }
Пример #3
0
        public void TextFieldSignalConstructor()
        {
            tlog.Debug(tag, $"TextFieldSignalConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"TextFieldSignalConstructor END (OK)");
        }
Пример #4
0
        public void TextFieldSignalEmpty()
        {
            tlog.Debug(tag, $"TextFieldSignalEmpty START");

            var testingTarget = new TextFieldSignal();

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

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

            testingTarget.Dispose();

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