Exemple #1
0
        public void IfLineNumberIsDivisibleByFivePrintBuzz()
        {
            FizzBuzzPrinter fb = new FizzBuzzPrinter();

            Assert.AreEqual("Buzz", fb.PrintLine(5));
        }
Exemple #2
0
        public void IfLineNumberIsDivisibleByThreeAndFivePrintFizzBuzz()
        {
            FizzBuzzPrinter fb = new FizzBuzzPrinter();

            Assert.AreEqual("FizzBuzz", fb.PrintLine(15));
        }
Exemple #3
0
        public void IfLineNumberIsOnePrintOne()
        {
            FizzBuzzPrinter fb = new FizzBuzzPrinter();

            Assert.AreEqual(1.ToString(), fb.PrintLine(1));
        }