Exemplo n.º 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());
        }
Exemplo n.º 2
0
        public void TestBottomRow()
        {
            var clock = new Kata2019.BerlinClockSession2.Clock("12:51:10");

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

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

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

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