public void HandleWindowScroll_NoCtrlKey_DoesNotZoom() { var windowvm = new WindowViewModel(); var mouseScroll = new MouseWheelEventArgs(Mouse.PrimaryDevice, 0, 1); // system under test viewModelServices.HandleWindowScroll(windowvm, ModifierKeys.None, mouseScroll); Assert.Equal(1, windowvm.Zoom); }
private void Window_PreviewMouseWheel(Window _, MouseWheelEventArgs e) { viewModelService.HandleWindowScroll(Model, Keyboard.Modifiers, e); }