Exemplo 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)");
        }
Exemplo 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)");
        }
Exemplo 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)");
        }
Exemplo 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)");
        }
Exemplo n.º 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StageWheelSignal obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }