コード例 #1
0
        public void StateChangedSignalTypeEmit()
        {
            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 StateChangedSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"StateChangedSignalTypeEmit END (OK)");
        }
コード例 #2
0
        public void StateChangedSignalTypeConnect()
        {
            tlog.Debug(tag, $"StateChangedSignalTypeConnect START");

            var testingTarget = new StateChangedSignalType();

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

            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, $"StateChangedSignalTypeConnect END (OK)");
        }
コード例 #3
0
        public void StateChangedSignalTypeConstructor()
        {
            tlog.Debug(tag, $"StateChangedSignalTypeConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"StateChangedSignalTypeConstructor END (OK)");
        }
コード例 #4
0
        public void StateChangedSignalTypeEmpty()
        {
            tlog.Debug(tag, $"StateChangedSignalTypeEmpty START");

            var testingTarget = new StateChangedSignalType();

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

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"StateChangedSignalTypeEmpty END (OK)");
        }
コード例 #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(StateChangedSignalType obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }