예제 #1
0
        public void EvaluateNumber_NumberIsDivisibleByThreeAndFive_FizzBuzzIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

            Assert.AreEqual("FizzBuzz", evaluator.EvaluateNumber(15));
        }
예제 #2
0
        public void EvaluateNumber_NumberIsNotDivisibleByThreeOrFive_NumberAsStringIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

            Assert.AreEqual("2", evaluator.EvaluateNumber(2));
        }
예제 #3
0
        public void EvaluateNumber_NumberIsThree_FizzIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

            Assert.AreEqual("Fizz", evaluator.EvaluateNumber(3));
        }