public void ListEventSignalTypeEmit() { tlog.Debug(tag, $"ListEventSignalTypeEmit 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}"); using (View view = new View()) { var testingTarget = new ListEventSignalType(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!"); try { testingTarget.Emit(view); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"ListEventSignalTypeEmit END (OK)"); }
public void ListEventSignalTypeConnect() { tlog.Debug(tag, $"ListEventSignalTypeConnect START"); var testingTarget = new ListEventSignalType(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!"); 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, $"ListEventSignalTypeConnect END (OK)"); }
public void ListEventSignalTypeConstructor() { tlog.Debug(tag, $"ListEventSignalTypeConstructor START"); using (View view = new View()) { var testingTarget = new ListEventSignalType(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ListEventSignalTypeConstructor END (OK)"); }
public void ListEventSignalTypeEmpty() { tlog.Debug(tag, $"ListEventSignalTypeEmpty START"); var testingTarget = new ListEventSignalType(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ListEventSignalType>(testingTarget, "Should be an Instance of ListEventSignalType!"); try { testingTarget.Empty(); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ListEventSignalTypeEmpty END (OK)"); }