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)"); }
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)"); }
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)"); }
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)"); }
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); }