Ejemplo n.º 1
0
        public void StatusSignalTypeEmit()
        {
            tlog.Debug(tag, $"StatusSignalTypeEmit 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 StatusSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"StatusSignalTypeEmit END (OK)");
        }
Ejemplo n.º 2
0
        public void StatusSignalTypeConnect()
        {
            tlog.Debug(tag, $"StatusSignalTypeConnect START");

            var testingTarget = new StatusSignalType();

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

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

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"StatusSignalTypeConstructor END (OK)");
        }
Ejemplo n.º 4
0
        public void StatusSignalTypeEmpty()
        {
            tlog.Debug(tag, $"StatusSignalTypeEmpty START");

            var testingTarget = new StatusSignalType();

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

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

            testingTarget.Dispose();

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