Example #1
0
 public void Return_multiple_verses()
 {
     TwelveDaysSong.Verses(1, 3).Should()
     .Be("On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n\n" +
         "On the second day of Christmas my true love gave to me, two Turtle Doves, and a Partridge in a Pear Tree.\n\n" +
         "On the third day of Christmas my true love gave to me, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n\n");
 }
Example #2
0
        public void Return_verse_2()
        {
            var expected = "On the second day of Christmas my true love gave to me, two Turtle Doves, and a Partridge in a Pear Tree.\n";
            var actual   = TwelveDaysSong.Verse(2);

            Console.WriteLine(actual);
            actual.Should().Be(expected);
        }
Example #3
0
        public void Return_verse_1()
        {
            var expected = "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n";
            var actual   = TwelveDaysSong.Verse(1);

            Console.WriteLine(actual);
            actual.Should().Be(expected);
        }
Example #4
0
 public void Return_verse_12()
 {
     TwelveDaysSong.Verse(12).Should()
     .Be("On the twelfth day of Christmas my true love gave to me, twelve Drummers Drumming, eleven Pipers Piping, ten Lords-a-Leaping, nine Ladies Dancing, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n");
 }
Example #5
0
 public void Return_verse_8()
 {
     TwelveDaysSong.Verse(8).Should()
     .Be("On the eighth day of Christmas my true love gave to me, eight Maids-a-Milking, seven Swans-a-Swimming, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n");
 }
Example #6
0
 public void Return_verse_6()
 {
     TwelveDaysSong.Verse(6).Should()
     .Be("On the sixth day of Christmas my true love gave to me, six Geese-a-Laying, five Gold Rings, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n");
 }
Example #7
0
 public void Return_verse_4()
 {
     TwelveDaysSong.Verse(4).Should()
     .Be("On the fourth day of Christmas my true love gave to me, four Calling Birds, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n");
 }
Example #8
0
 public void Return_verse_3()
 {
     TwelveDaysSong.Verse(3).Should()
     .Be("On the third day of Christmas my true love gave to me, three French Hens, two Turtle Doves, and a Partridge in a Pear Tree.\n");
 }
Example #9
0
 public void Return_entire_song()
 {
     TwelveDaysSong.Sing().Should()
     .Be(TwelveDaysSong.Verses(1, 12));
 }