Esempio n. 1
0
        public void WhenDivisibleByFive_ReturnsBuzz()
        {
            var fb = new FizzBuzz();

            var response = fb.Answer(15);

            Assert.AreEqual(2, response.Count(r => r == "Buzz"));
        }
Esempio n. 2
0
        public void WhenDivisibleByThree_ReturnsFizz()
        {
            // arrange
            var fb = new FizzBuzz();

            // act
            var response = fb.Answer(15);

            //assert
            Assert.AreEqual(4, response.Count(r => r == "Fizz"));
        }