예제 #1
0
        public void GetOutput_InputIsDivisibleBy5Only_ReturnBuzz()
        {
            var result = Exercise_Fizz_Buzz.GetOutput(5);

            Assert.That(result, Is.EqualTo("Buzz"));
        }
예제 #2
0
        public void GetOutput_InputIsNotDivisibleBy3Or5_ReturnTheSameNumber()
        {
            var result = Exercise_Fizz_Buzz.GetOutput(1);

            Assert.That(result, Is.EqualTo("1"));
        }
예제 #3
0
        public void GetOutput_InputIsDivisibleBy3And5_ReturnFizzBuzz()
        {
            var result = Exercise_Fizz_Buzz.GetOutput(15);

            Assert.That(result, Is.EqualTo("FizzBuzz"));
        }