Exemplo n.º 1
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";

        Assert.That(twelveDaysSong.Verse(1), Is.EqualTo(expected));
    }
Exemplo n.º 2
0
    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));
    }
Exemplo n.º 3
0
    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));
    }
Exemplo n.º 4
0
    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));
    }
Exemplo n.º 5
0
    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));
    }
Exemplo n.º 6
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";

        Assert.Equal(expected, TwelveDaysSong.Verse(2));
    }