public void ShouldReturnTheRightValue(int hours, int minutes, int seconds, string expectedResult) { var topFirstRow = new RowGeneratorTopFirst(); var topSecondRow = new RowGeneratorTopSecond(); var bottomFirstRow = new RowGeneratorBottomFirst(); var bottomSecondRow = new RowGeneratorBottomSecond(); var yellowLampGen = new RowGeneratorYellowLamp(); var clock = new BerlinClock(topFirstRow, topSecondRow, bottomFirstRow, bottomSecondRow, yellowLampGen); var result = clock.Generate(hours, minutes, seconds); Assert.That(result, Is.EqualTo(expectedResult)); }
public void GenerateCorrectZeroHour(int hour, string expectedResult) { var hourGenerator = new RowGeneratorTopFirst(); var result = hourGenerator.Generate(hour); Assert.That(result, Is.EqualTo(expectedResult)); }