public void ShouldGenerateCorrectResult(int value,int adjustment, string expectedResult) { var generator = new RowGeneratorBottomSecond(); var adjustedValue = value - adjustment; var result = generator.Generate(adjustedValue); Assert.That(result, Is.EqualTo(expectedResult)); }
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)); }