예제 #1
0
        public void ShouldReturnFirstStair()
        {
            Staircase staircase = new Staircase(6);


            staircase.GetNextStair().Should().Be("     #");
        }
예제 #2
0
        public void ShouldReturnSecondStair()
        {
            Staircase staircase = new Staircase(6);

            staircase.GetNextStair();

            staircase.GetNextStair().Should().Be("    ##");
        }
예제 #3
0
        public void ShouldDoWholeThing()
        {
            int stairCount = 6;

            Staircase staircase = new Staircase(6);

            for (int i = 0; i < stairCount; i++)
            {
                Console.WriteLine(staircase.GetNextStair());
            }
        }