public void ShouldReturnTheCorrectBiggestFit(int value, int expectedValue) { var calculator = new ValueBiggestFit(new List<int> { 5, 10, 15, 20 }); var result = calculator.GetFit(value); Assert.That(result, Is.EqualTo(expectedValue)); }
public BerlinClockGenerator(IRowGenerator topFirstRow, IRowGenerator topSecondRow, IRowGenerator bottomFirstRow, IRowGenerator bottomSecondRow, IRowGenerator lampGenerator) { _hoursFirstRowGenerator = topFirstRow; _hoursSecondRowGenerator = topSecondRow; _minutesFirstRowGenerator = bottomFirstRow; _minutesSecondRowGenerator = bottomSecondRow; _secondsRowGenerator = lampGenerator; _hourBiggestFit = new ValueBiggestFit(new List <int> { 5, 10, 15, 20 }); _minuteBiggestFit = new ValueBiggestFit(new List <int> { 5, 10, 15, 20, 25, 30, 35, 40, 35, 50, 55 }); }