public void Second_line_of_first_non_generic_verse()
        {
            var expected =
                "Take one down and pass it around, 1 bottle of beer on the wall.";
            var sut = new VerseTextCreator();

            Assert.Equal(expected, sut.VerseSecondLine(2));
        }
        public void First_line_of_first_non_generic_verse()
        {
            var expected =
                "2 bottles of beer on the wall, 2 bottles of beer.";
            var sut = new VerseTextCreator();

            Assert.Equal(expected, sut.VerseFirstLine(2));
        }
        public void First_line_of_last_generic_verse()
        {
            int index    = 3;
            var expected = $"{index} bottles of beer on the wall, {index} bottles of beer.";
            var sut      = new VerseTextCreator();

            Assert.Equal(expected, sut.VerseFirstLine(index));
        }
        public void Second_line_of_last_generic_verse()
        {
            int index    = 3;
            var expected = $"Take one down and pass it around, {index - 1} bottles of beer on the wall.";
            var sut      = new VerseTextCreator();

            Assert.Equal(expected, sut.VerseSecondLine(index));
        }
Exemplo n.º 5
0
        private void CreateText(int verseIndex)
        {
            var textCreator = new VerseTextCreator();

            Text = textCreator.VerseLines(verseIndex);
        }