public void CanPrintFizzBuzzForMultiplesOf3And5() { var fizzBuzz = new FizzBuzz.FizzBuzz(); var i = fizzBuzz.Print(15); Assert.AreEqual("FizzBuzz", i); }
public void CanPrintANumber() { var fizzBuzz = new FizzBuzz.FizzBuzz(); var i = fizzBuzz.Print(7); Assert.AreEqual("7", i); }
public void CanPrintBuzzForMultiplesOf5() { var fizzBuzz = new FizzBuzz.FizzBuzz(); var i = fizzBuzz.Print(20); Assert.AreEqual("Buzz", i); }
static void Main(string[] args) { var fizzBuzz = new FizzBuzz.FizzBuzz(); for (var i = 1; i <= 100; i++) { Console.WriteLine($"{i} is {fizzBuzz.Print(i)}."); } Console.Read(); }