public void WhenModeButtonIsClicked_UpdatesDisplayWithNewValue() { _behavior.Time = new DateTime(2000, 1, 1, 12, 0, 0); var previousValue = _behavior.Time; _behavior.OnClick(new ModeClick()); A.CallTo(() => _clockDisplay.TriggerUpdate("1300")).MustHaveHappened(); }
public void WhenTimeIncreases_UpdatesDisplay() { _testableClock.Behavior = _behavior; var time = new DateTime(2015, 3, 20, 4, 3, 59); _behavior.Time = time; _testableClock.TriggerTickEvent(); A.CallTo(() => _clockDisplay.TriggerUpdate("0404")).MustHaveHappened(); }