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