public void ToggleRectangleZooming_RectangleZoomingDisabled_RectangleZoomingEnabled() { // Setup var controller = new DynamicPlotController(); // Call controller.ToggleRectangleZooming(); // Assert Assert.IsTrue(controller.IsRectangleZoomingEnabled); Assert.IsFalse(controller.IsPanningEnabled); Assert.AreEqual(2, controller.InputCommandBindings.Count); AssertWheelZoomCommandBinding(controller, 0); AssertCustomRectangleZoomCommand(controller, 1); }
public void TogglePanning_PanningDisabled_PanningEnabled() { // Setup var controller = new DynamicPlotController(); controller.ToggleRectangleZooming(); // Call controller.TogglePanning(); // Assert Assert.IsTrue(controller.IsPanningEnabled); Assert.IsFalse(controller.IsRectangleZoomingEnabled); Assert.AreEqual(3, controller.InputCommandBindings.Count); AssertWheelZoomCommandBinding(controller, 0); AssertMousePanAtCommandBinding(controller, 1, OxyMouseButton.Left); AssertMousePanAtCommandBinding(controller, 2, OxyMouseButton.Middle); }