//TODO: Add missing test cases public void Given_Specific_Hours_And_Lamp_Index_Then_Lamp_Light_Should_Be_Off(int hours, int lampIndex) { // Act var result = _itemUnderTest.Rule(hours, lampIndex); // Assert Assert.IsFalse(result.IsSwitchedOn); Assert.AreEqual(LampLight.Off, result.Light); }
public void Given_Specific_Hours_Then_Lamp_Light_Should_Be_Off() { // Arrange var seconds = 51; // Act var result = _itemUnderTest.Rule(seconds, 1); // Assert Assert.IsFalse(result.IsSwitchedOn); Assert.AreEqual(LampLight.Off, result.Light); }
private static LampRow GenerateLine(int timeUnit, LampRow lampRow, IRowRule rowRule) { for (var index = 0; index < lampRow.Lamps.Length; index++) { lampRow.Lamps[index] = rowRule.Rule(timeUnit, index); } return(lampRow); }