public void SendsInputToTargetWindowWithoutChangingFocus() { var focusWindow = new TestWindowAdapter(TimeoutMillis); focusWindow.Show(); focusWindow.Focus(); Assert.IsFalse(_window.HasFocus, "The target window has focus."); _driver.Write("a"); WindowShouldHaveReceivedKeyPressSequence('a'); Assert.IsFalse(_window.HasFocus, "The target window gained focus."); }
public void CanWriteDeadCharacter() { _driver.Write("€"); _keyboardMock.Verify(x => x.KeyPress(Keys.E | Keys.Alt | Keys.Control)); }