示例#1
0
        public void TestMouseWheelWithActivatedControl()
        {
            Screen           screen  = new Screen(100.0f, 100.0f);
            MouseTestControl control = new MouseTestControl();

            control.Bounds = new UniRectangle(10.0f, 10.0f, 80.0f, 80.0f);
            screen.Desktop.Children.Add(control);

            screen.InjectKeyPress(Keys.A);
            screen.InjectMouseWheel(12.34f);
            Assert.AreEqual(12.34f, control.MouseWheelTicks);
        }
示例#2
0
        public void TestMouseWheel()
        {
            Screen           screen  = new Screen();
            MouseTestControl control = new MouseTestControl();

            control.Bounds = new UniRectangle(10.0f, 10.0f, 80.0f, 80.0f);
            screen.Desktop.Children.Add(control);

            screen.InjectMouseMove(50.0f, 50.0f);
            screen.InjectMouseWheel(12.34f);
            Assert.AreEqual(12.34f, control.MouseWheelTicks);
        }
示例#3
0
    public void TestMouseWheelWithActivatedControl() {
      Screen screen = new Screen(100.0f, 100.0f);
      MouseTestControl control = new MouseTestControl();
      control.Bounds = new UniRectangle(10.0f, 10.0f, 80.0f, 80.0f);
      screen.Desktop.Children.Add(control);

      screen.InjectKeyPress(Keys.A);
      screen.InjectMouseWheel(12.34f);
      Assert.AreEqual(12.34f, control.MouseWheelTicks);
    }
示例#4
0
    public void TestMouseWheel() {
      Screen screen = new Screen();
      MouseTestControl control = new MouseTestControl();
      control.Bounds = new UniRectangle(10.0f, 10.0f, 80.0f, 80.0f);
      screen.Desktop.Children.Add(control);

      screen.InjectMouseMove(50.0f, 50.0f);
      screen.InjectMouseWheel(12.34f);
      Assert.AreEqual(12.34f, control.MouseWheelTicks);
    }