Пример #1
0
 private void AssertClick(
     MouseClickDiv div, int x, int y, MouseClickDiv.MouseAction action, MouseButtons mouseButton, ModifierKeys modifierKey)
 {
     div.X.Should().Be(x, "X");
     div.Y.Should().Be(y, "Y");
     div.Action.Should().Be(action, "Action");
     div.MouseButton.Should().Be(mouseButton, "MouseButton");
     div.ModifierKey.Should().Be(modifierKey, "ModifierKey");
 }
Пример #2
0
 public void MouseTest_Click(
     int x, int y, MouseClickDiv.MouseAction action, MouseButtons mouseButton, ModifierKeys modifierKey)
 {
     Mouse.Click(MouseTestPage.FirstDiv, mouseButton, modifierKey, new Point(x, y));
     AssertClick(MouseTestPage.FirstDiv, x, y, action, mouseButton, modifierKey);
 }