public void ConditionMatchedWithoutMouse(Type resolver)
 {
     Start(resolver, (InputCommands input) =>
     {
         var trigger = new MouseButtonTrigger(MouseButton.Right, State.Pressing);
         Assert.False(trigger.ConditionMatched(input));
     });
 }
 public void ConditionMatched()
 {
     var resolver = new TestResolver();
     var input = resolver.Resolve<InputCommands>();
     var trigger = new MouseButtonTrigger(MouseButton.Left, State.Releasing);
     resolver.SetMouseButtonState(MouseButton.Left, State.Releasing, Point.Half);
     Assert.True(trigger.ConditionMatched(input));
     trigger = new MouseButtonTrigger(MouseButton.Middle, State.Released);
     Assert.True(trigger.ConditionMatched(input));
     trigger = new MouseButtonTrigger(MouseButton.Right, State.Pressing);
     resolver.SetMouseButtonState(MouseButton.Right, State.Pressing, Point.Zero);
     Assert.True(trigger.ConditionMatched(input));
     trigger = new MouseButtonTrigger(MouseButton.X1, State.Released);
     Assert.True(trigger.ConditionMatched(input));
     trigger = new MouseButtonTrigger(MouseButton.X2, State.Released);
     Assert.True(trigger.ConditionMatched(input));
 }