Beispiel #1
0
        public void GetTime_ReturnsHalfPastAfter4()
        {
            var fourOclockInWords = ClockApi.GetTimeAsWords(4, 30);

            Assert.AreEqual("It is Half past Four.", fourOclockInWords);
        }
Beispiel #2
0
        public void GetTime_ReturnsTwentyFiveMinutesPastFour()
        {
            var fourOclockInWords = ClockApi.GetTimeAsWords(4, 25);

            Assert.AreEqual("It is Twenty-Five minutes past Four.", fourOclockInWords);
        }
Beispiel #3
0
        public void GetTime_ReturnsTwentyMinutesToNine()
        {
            var twentyMinutesToNine = ClockApi.GetTimeAsWords(8, 40);

            Assert.AreEqual("It is Twenty minutes to Nine.", twentyMinutesToNine);
        }
Beispiel #4
0
        public void GetTime_ReturnsQuarterAfter4()
        {
            var fourOclockInWords = ClockApi.GetTimeAsWords(4, 15);

            Assert.AreEqual("It is Quarter past Four.", fourOclockInWords);
        }
Beispiel #5
0
        public void GetTime_ReturnsTwoMinutestoEleven()
        {
            var twoMinutestoEleven = ClockApi.GetTimeAsWords(10, 58);

            Assert.AreEqual("It is Two minutes to Eleven.", twoMinutestoEleven);
        }
Beispiel #6
0
        public void GetTime_ReturnsTwentyMinutesPastEight()
        {
            var twentyMinutesPastEight = ClockApi.GetTimeAsWords(8, 20);

            Assert.AreEqual("It is Twenty minutes past Eight.", twentyMinutesPastEight);
        }
Beispiel #7
0
        public void GetTime_ReturnsOneMinuteToTwelve_inTwentyFourHourTime()
        {
            var OneMinuteToTwelve = ClockApi.GetTimeAsWords(11, 59);

            Assert.AreEqual("It is One minute to Twelve.", OneMinuteToTwelve);
        }
Beispiel #8
0
        public void GetTime_ReturnsTentoOne()
        {
            var tentoOneInWords = ClockApi.GetTimeAsWords(12, 50);

            Assert.AreEqual("It is Ten minutes to One.", tentoOneInWords);
        }
Beispiel #9
0
        public void GetTime_ReturnsNineteenAfter11_InTwentyFourHourTime()
        {
            var nineteenMinutesPastEleven = ClockApi.GetTimeAsWords(23, 19);

            Assert.AreEqual("It is Nineteen minutes past Eleven.", nineteenMinutesPastEleven);
        }
Beispiel #10
0
        public void GetTime_ReturnsTwelveOclock_inTwentyFourHourTime()
        {
            var twelveoclock = ClockApi.GetTimeAsWords(00, 00);

            Assert.AreEqual("It is Twelve o'clock.", twelveoclock);
        }
Beispiel #11
0
        public void GetTime_ReturnsTwelveAfter11_InTwentyFourHourTime()
        {
            var twelveMinutesPastEleven = ClockApi.GetTimeAsWords(23, 12);

            Assert.AreEqual("It is Twelve minutes past Eleven.", twelveMinutesPastEleven);
        }
Beispiel #12
0
        public void GetTime_ReturnsOneMinutePastEleven_InTwentyFourHourTime()
        {
            var oneMinutePastEleven = ClockApi.GetTimeAsWords(23, 01);

            Assert.AreEqual("It is One minute past Eleven.", oneMinutePastEleven);
        }
Beispiel #13
0
        public void GetTime_ReturnsOneMinutePastEleven()
        {
            var oneMinutePastEleven = ClockApi.GetTimeAsWords(11, 01);

            Assert.AreEqual("It is One minute past Eleven.", oneMinutePastEleven);
        }
Beispiel #14
0
        public void GetTime_ReturnsTenMinutestoFive()
        {
            var tenMinutesUntilFiveInWords = ClockApi.GetTimeAsWords(4, 50);

            Assert.AreEqual("It is Ten minutes to Five.", tenMinutesUntilFiveInWords);
        }
Beispiel #15
0
        public void GetTime_ReturnsTwentyNineMinutesToEight()
        {
            var twentyNineMinutesToEight = ClockApi.GetTimeAsWords(7, 31);

            Assert.AreEqual("It is Twenty-Nine minutes to Eight.", twentyNineMinutesToEight);
        }
Beispiel #16
0
        public void GetTime_ReturnsTwelveOclock()
        {
            var twelveOClockInWords = ClockApi.GetTimeAsWords(12, 00);

            Assert.AreEqual("It is Twelve o'clock.", twelveOClockInWords);
        }
Beispiel #17
0
        public void GetTime_Returns4Oclock()
        {
            var fourOclockInWords = ClockApi.GetTimeAsWords(4, 00);

            Assert.AreEqual("It is Four o'clock.", fourOclockInWords);
        }
Beispiel #18
0
        public void GetTime_ReturnsQuartertoTwo()
        {
            var quartertoTwoInWords = ClockApi.GetTimeAsWords(1, 45);

            Assert.AreEqual("It is Quarter to Two.", quartertoTwoInWords);
        }
Beispiel #19
0
        public void GetTime_Returns3Oclock()
        {
            var threeOclockInWords = ClockApi.GetTimeAsWords(3, 00);

            Assert.AreEqual("It is Three o'clock.", threeOclockInWords);
        }