示例#1
0
        public void PrintTextForOneToFifteen()
        {
            var fb = new FizzBuzz();

            var text = fb.Print(15);

            Assert.That(text, Is.EqualTo("1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz "));
        }
示例#2
0
 public void ShouldPrintNumbersOneToTwo()
 {
     var fb = new FizzBuzz();
     var text = fb.Print(2);
     Assert.That(text, Is.EqualTo("1 2 "));
 }