public void Test_A_Couple_Of_Verses() { var subject = new NinetyNineBottlesSinger(); var result = subject.Verses(99, 98); var expected = "99 bottles of beer on the wall, 99 bottles of beer.\n" + "Take one down and pass it around, 98 bottles of beer on the wall.\n" + "98 bottles of beer on the wall, 98 bottles of beer.\n" + "Take one down and pass it around, 97 bottles of beer on the wall."; Assert.That(result, Is.EqualTo(expected)); }
public void Test_A_Few_Verses() { var subject = new NinetyNineBottlesSinger(); var result = subject.Verses(2, 0); var expected = "2 bottles of beer on the wall, 2 bottles of beer.\n" + "Take one down and pass it around, 1 bottle of beer on the wall.\n" + "1 bottle of beer on the wall, 1 bottle of beer.\n" + "Take it down and pass it around, no more bottles of beer on the wall.\n" + "No more bottles of beer on the wall, no more bottles of beer.\n" + "Go to the store and buy some more, 99 bottles of beer on the wall."; Assert.That(result, Is.EqualTo(expected)); }