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 WhenSetButtonPressedTwice_LoadsTimeBehavior_WithCorrectTime()
        {
            var behavior = new TimeChangeBehavior();
            var clock    = A.Fake <IClock>();

            behavior.Time = DateTime.Now;
            behavior.Load(clock);
            behavior.OnClick(new SetClick());
            behavior.OnClick(new SetClick());
            A.CallTo(() => clock.SwitchBehavior <TimeBehavior>(behavior.Time)).MustHaveHappened();
        }