コード例 #1
0
 public void Numbers()
 {
     Assert.AreEqual("1", FizzBuzzer.Eval(1));
     Assert.AreEqual("2", FizzBuzzer.Eval(2));
     Assert.AreEqual("4", FizzBuzzer.Eval(4));
     Assert.AreEqual("7", FizzBuzzer.Eval(7));
 }
コード例 #2
0
 public void Combined()
 {
     Assert.AreEqual("FizzBuzz", FizzBuzzer.Eval(15));
     Assert.AreEqual("FizzBuzz", FizzBuzzer.Eval(30));
 }
コード例 #3
0
 public void Multiples()
 {
     Assert.AreEqual("Fizz", FizzBuzzer.Eval(6));
     Assert.AreEqual("Buzz", FizzBuzzer.Eval(10));
 }
コード例 #4
0
 public void Singles()
 {
     Assert.AreEqual("Fizz", FizzBuzzer.Eval(3));
     Assert.AreEqual("Buzz", FizzBuzzer.Eval(5));
 }