// ReSharper disable SuggestBaseTypeForParameter public CommandContainer( FullscreenCommand fullScreenCommand, RefreshCommand refreshCommand, ShowSettingsCommand showSettingsCommand) { _fullscreenCommand = fullScreenCommand; _refreshCommand = refreshCommand; _showSettingsCommand = showSettingsCommand; }
public void GoesNotFullscreen_WhenAlready_FullScreen() { var window = new Window { WindowStyle = WindowStyle.None, Topmost = true, WindowState = WindowState.Maximized }; _view.Expect(v => v.Window).Return(window).Repeat.Any(); var command = new FullscreenCommand(_view); command.Execute(null); window.WindowStyle.ShouldBe(WindowStyle.SingleBorderWindow); window.Topmost.ShouldBe(false); window.WindowState.ShouldBe(WindowState.Normal); }