public void Return_multiple_verses()
    {
        var expected = "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";

        Assert.Equal(expected, TwelveDaysSong.Verses(1, 3));
    }
Esempio n. 2
0
 public void Setup()
 {
     twelveDaysSong = new TwelveDaysSong();
 }
    public void Return_verse_12()
    {
        var expected = "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";

        Assert.Equal(expected, TwelveDaysSong.Verse(12));
    }
    public void Return_verse_8()
    {
        var expected = "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";

        Assert.Equal(expected, TwelveDaysSong.Verse(8));
    }
    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";

        Assert.Equal(expected, TwelveDaysSong.Verse(1));
    }
    public void Return_verse_6()
    {
        var expected = "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";

        Assert.Equal(expected, TwelveDaysSong.Verse(6));
    }
    public void Return_verse_4()
    {
        var expected = "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";

        Assert.Equal(expected, TwelveDaysSong.Verse(4));
    }
    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";

        Assert.Equal(expected, TwelveDaysSong.Verse(2));
    }
 public void Return_entire_song()
 {
     Assert.Equal(TwelveDaysSong.Sing(), TwelveDaysSong.Verses(1, 12));
 }
Esempio n. 10
0
 public void Setup()
 {
     twelveDaysSong = new TwelveDaysSong();
 }