示例#1
0
        public void WhenDivisibleByFive_ReturnsBuzz()
        {
            var fb = new FizzBuzz();

            var response = fb.Answer(15);

            Assert.AreEqual(2, response.Count(r => r == "Buzz"));
        }
示例#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"));
        }