public void Given_OddSecond_When_SwitchingSecondsLampState_Then_TurnsLampOn(int second) { var secondsRow = SecondsRow.Create(); secondsRow.SetPartOfTime(second); Assert.IsFalse(secondsRow.Lamps.First()); }
public void Given_InvalidHour_When_SwitchingHourLampsState_Then_ThrowsArgumentOutOfRangeException(int second) { var secondsRow = SecondsRow.Create(); Assert.Throws <ArgumentOutOfRangeException>(() => secondsRow.SetPartOfTime(second)); }