예제 #1
0
        public void KataFizzBuzz()
        {
            KataFizzBuzz fizzBuzzTest = new KataFizzBuzz();

            Assert.AreEqual("", fizzBuzzTest.GetFizzBuzz(0));
            Assert.AreEqual("", fizzBuzzTest.GetFizzBuzz(101));
            Assert.AreEqual("Fizz", fizzBuzzTest.GetFizzBuzz(3));
            Assert.AreEqual("Buzz", fizzBuzzTest.GetFizzBuzz(5));
            Assert.AreEqual("4", fizzBuzzTest.GetFizzBuzz(4));
            Assert.AreEqual("FizzBuzz", fizzBuzzTest.GetFizzBuzz(30));
        }