Example #1
0
        public void ShouldRespondWithFizzBuzzWhenGivenMutlipleOfThreeAndFive()
        {
            var sut = new FizzBuzz();

            sut.FormulateResponse(15);

            Assert.That(sut.Response, Is.EqualTo("FizzBuzz"));
        }
Example #2
0
        public void ShouldRespondWithNumberWhenGivenNumberThatIsNeitherAMultipleOfThreeOrFive()
        {
            var sut = new FizzBuzz();

            sut.FormulateResponse(1);

            Assert.That(sut.Response, Is.EqualTo("1"));
        }
Example #3
0
        public void ShouldRespondWithBuzzWhenGivenThatIsAMutlipleOfFive()
        {
            var sut = new FizzBuzz();

            sut.FormulateResponse(5);

            Assert.That(sut.Response, Is.EqualTo("Buzz"));
        }