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

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

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

            testingTarget.Dispose();

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

            var testingTarget = new StageWheelSignal();

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

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

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

                testingTarget.Dispose();
            }

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

            var testingTarget = new StageWheelSignal();

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

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

            testingTarget.Dispose();

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