Пример #1
0
        public void WhenMinutesFiftyNine_TopMinutesClockShouldYYRYYRYYRYY(string expected)
        {
            var datetime = new DateTime(2017, 1, 1, 0, 59, 0);

            _berlinClock = new BerlinClock(datetime);
            var result = _berlinClock.GetTopMinutesClock();

            Assert.Equal(expected, result);
        }
Пример #2
0
        public void WhenMinutesTen_TopMinutesClockFirst2ShouldYY(string expected)
        {
            var datetime = new DateTime(2017, 1, 1, 0, 10, 0);

            _berlinClock = new BerlinClock(datetime);
            var result = _berlinClock.GetTopMinutesClock();

            Assert.Equal(expected, result);
        }
Пример #3
0
        public void WhenMinutesNineteen_TopMinutesClockShouldStartWithYYROOO(string expected)
        {
            var datetime = new DateTime(2017, 1, 1, 0, 19, 0);

            _berlinClock = new BerlinClock(datetime);
            var result = _berlinClock.GetTopMinutesClock();

            Assert.Equal(expected, result);
        }
Пример #4
0
        public void WhenMinutesZero_TopMinutesClockShouldAllOff(string expected)
        {
            var datetime = new DateTime(2017, 1, 1, 0, 0, 0);

            _berlinClock = new BerlinClock(datetime);
            var result = _berlinClock.GetTopMinutesClock();

            Assert.Equal(expected, result);
        }