Esempio n. 1
0
        public void ShouldGenerateExpectedResult(int value, string expectedResult)
        {
            var generator = new RowGeneratorBottomFirst();
            var result    = generator.Generate(value);

            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));
        }