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