Exemplo n.º 1
0
        public void EvaluateNumber_NumberIsDivisibleByThreeAndFive_FizzBuzzIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

            Assert.AreEqual("FizzBuzz", evaluator.EvaluateNumber(15));
        }
Exemplo n.º 2
0
        public void EvaluateNumber_NumberIsNotDivisibleByThreeOrFive_NumberAsStringIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

            Assert.AreEqual("2", evaluator.EvaluateNumber(2));
        }
Exemplo n.º 3
0
        public void EvaluateNumber_NumberIsThree_FizzIsReturned()
        {
            var evaluator = new FizzBuzzEvaluator();

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