Exemple #1
0
        ShouldLitRedLampsAppropriatlyToHoursInBothRowsWhenHoursDevidesBy5WithReminder(string hours, string firstRowOutput, string secondRowOutput)
        {
            //GIVEN
            var timeConverterHours = ITimeConverterFactory.CreateTimeConverterHours();

            //WHEN
            var hoursTime = timeConverterHours.ConvertTime(hours);

            //THEN
            Assert.AreEqual(string.Join(Environment.NewLine, firstRowOutput, secondRowOutput), hoursTime);
        }
Exemple #2
0
        public void ShouldLitRedAndYellowLampsAppropriatlyToMinutesInBothRowsWhenMinutesDevidesBy5WithReminder(string minutes, string firstRowOutput, string secondRowOutput)
        {
            //GIVEN
            var timeConverterMinutes = ITimeConverterFactory.CreateTimeConverterMinutes();

            //WHEN
            var minutesTime = timeConverterMinutes.ConvertTime(minutes);

            //THEN
            Assert.AreEqual(string.Join(Environment.NewLine, firstRowOutput, secondRowOutput), minutesTime);
        }
        public void ShouldLitYellowLampWhenSecondIsEven([Values("00:00:00", "00:00:20")] string seconds)
        {
            //GIVEN
            var timeConverterSeconds = ITimeConverterFactory.CreateTimeConverterSeconds();

            //WHEN
            var secondsTime = timeConverterSeconds.ConvertTime(seconds);

            //THEN
            Assert.AreEqual("Y", secondsTime);
        }