public void IsSwitchedOn_If_ShowCountdownTrue_And_WasSwitchedOff() { _timer.Expect(t => t.IsSwitchedOn).Return(false); _changeHandler.ConfigUpdated(new ConfigSettings { ShowCountdown = true }); _timer.ShouldHaveBeenCalled(t => t.SwitchOn()); _view.ShouldHaveBeenCalled(v => v.Invoke(Arg <Action> .Is.Anything)); }
public void CanRefresh() { var command = new RefreshCommand(_view); command.Execute(null); command.CanExecute(null).ShouldBe(true); _view.ShouldHaveBeenCalled(v => v.UpdateScreen()); }