예제 #1
0
        public void TestOutput()
        {
            var    clock          = new Kata2019.BerlinClockSession2.Clock("16:51:00");
            string expectedOutput = "Y" + Environment.NewLine +
                                    "RRRO" + Environment.NewLine +
                                    "ROOO" + Environment.NewLine +
                                    "YYYYYYYYYYO" + Environment.NewLine +
                                    "YOOO";

            Assert.Equal(expectedOutput, clock.Output());
        }
예제 #2
0
        public void TestBottomRow()
        {
            var clock = new Kata2019.BerlinClockSession2.Clock("12:51:10");

            Assert.Equal("YOOO", clock.BottomRow);
        }
예제 #3
0
        public void TestSecondRow()
        {
            var clock = new Kata2019.BerlinClockSession2.Clock("12:51:10");

            Assert.Equal("RROO", clock.SecondRow);
        }
예제 #4
0
        public void TestThirdRow()
        {
            var clock = new Kata2019.BerlinClockSession2.Clock("12:51:10");

            Assert.Equal("YYYYYYYYYYO", clock.ThirdRow);
        }
예제 #5
0
        public void TestRoundYellowLightOff()
        {
            var clock = new Kata2019.BerlinClockSession2.Clock("12:51:10");

            Assert.Equal("Y", clock.TopYellowLight);
        }