Exemplo n.º 1
0
        public void TestUpdate()
        {
            var mouse = new NoMouse();

            mouse.Update();
            // No exception means success
        }
Exemplo n.º 2
0
        public void TestMoveTo()
        {
            var mouse = new NoMouse();

            mouse.MoveTo(100.0f, 200.0f);
            // No exception means success
        }
Exemplo n.º 3
0
        public void TestTakeSnapshot()
        {
            var mouse = new NoMouse();

            mouse.TakeSnapshot();
            // No exception means success
        }
Exemplo n.º 4
0
 public void TestEvents() {
   var mouse = new NoMouse();
   
   mouse.MouseMoved += mouseMoved;
   mouse.MouseMoved -= mouseMoved;
   
   mouse.MouseButtonPressed += mouseButton;
   mouse.MouseButtonPressed -= mouseButton;
   
   mouse.MouseButtonReleased += mouseButton;
   mouse.MouseButtonReleased -= mouseButton;
   
   mouse.MouseWheelRotated += mouseWheel;
   mouse.MouseWheelRotated -= mouseWheel;
 }
Exemplo n.º 5
0
        public void TestEvents()
        {
            var mouse = new NoMouse();

            mouse.MouseMoved += mouseMoved;
            mouse.MouseMoved -= mouseMoved;

            mouse.MouseButtonPressed += mouseButton;
            mouse.MouseButtonPressed -= mouseButton;

            mouse.MouseButtonReleased += mouseButton;
            mouse.MouseButtonReleased -= mouseButton;

            mouse.MouseWheelRotated += mouseWheel;
            mouse.MouseWheelRotated -= mouseWheel;
        }
Exemplo n.º 6
0
 public void TestUpdate() {
   var mouse = new NoMouse();
   mouse.Update();
   // No exception means success
 }
Exemplo n.º 7
0
 public void TestTakeSnapshot() {
   var mouse = new NoMouse();
   mouse.TakeSnapshot();
   // No exception means success
 }
Exemplo n.º 8
0
 public void TestName() {
   var mouse = new NoMouse();
   StringAssert.Contains("no", mouse.Name.ToLower());
 }
Exemplo n.º 9
0
 public void TestIsAttached() {
   var mouse = new NoMouse();
   Assert.IsFalse(mouse.IsAttached);
 }
Exemplo n.º 10
0
 public void TestConstructor() {
   var mouse = new NoMouse();
   Assert.IsNotNull(mouse);
 }
Exemplo n.º 11
0
        public void TestName()
        {
            var mouse = new NoMouse();

            StringAssert.Contains("no", mouse.Name.ToLower());
        }
Exemplo n.º 12
0
        public void TestIsAttached()
        {
            var mouse = new NoMouse();

            Assert.IsFalse(mouse.IsAttached);
        }
Exemplo n.º 13
0
        public void TestConstructor()
        {
            var mouse = new NoMouse();

            Assert.IsNotNull(mouse);
        }