コード例 #1
0
 public void TestMoveTo()
 {
     using (var mouse = new WindowMessageMouse(new TestMouseMessageSource())) {
         MouseState state = mouse.GetState();
         mouse.MoveTo(state.X, state.Y);
     }
 }
コード例 #2
0
 public void TestName() {
   using (var mouse = new WindowMessageMouse(new TestMouseMessageSource())) {
     StringAssert.Contains("mouse", mouse.Name.ToLower());
   }
 }
コード例 #3
0
 public void TestIsAttached() {
   using (var mouse = new WindowMessageMouse(new TestMouseMessageSource())) {
     Assert.IsTrue(mouse.IsAttached);
   }
 }
コード例 #4
0
 public void TestName()
 {
     using (var mouse = new WindowMessageMouse(new TestMouseMessageSource())) {
         StringAssert.Contains("mouse", mouse.Name.ToLower());
     }
 }
コード例 #5
0
 public void TestIsAttached()
 {
     using (var mouse = new WindowMessageMouse(new TestMouseMessageSource())) {
         Assert.IsTrue(mouse.IsAttached);
     }
 }