public void CannotEnterComfortModeTwice() { var selector = new ResponsivenessModeSelector(); Assert.Throws <DomainRuleViolatedException>(() => { selector.EnterComfort(); selector.EnterComfort(); }); }
public void EnteringComfortModeResultsInEvent() { var selector = new ResponsivenessModeSelector(); selector.EnterEconomic(); var events = selector.EnterComfort(); Assert.True(events.Any(x => x is ComfortModeEntered)); }