Exemplo n.º 1
0
        public void Convert_multiples_of_3_and_5_to_Buzz(int number)
        {
            // Arrange
            var fizzbuzz = new FizzBuzz();

            // Act
            var actualValue = fizzbuzz.Convert(number);

            // Assert
            Assert.That(actualValue, Is.EqualTo(FizzBuzzConstants.Fizz + FizzBuzzConstants.Buzz));
        }
Exemplo n.º 2
0
        public void Convert_regular_number_to_number_string(int number, string expectedOutput)
        {
            // Arrange
            var fizzbuzz = new FizzBuzz();

            // Act
            var actualValue = fizzbuzz.Convert(number);

            // Assert
            Assert.That(actualValue, Is.EqualTo(expectedOutput));
        }
Exemplo n.º 3
0
 public void return_FizzBuzz_when_convert_a_number_multiple_of_3_and_multiple_of_5(int number)
 {
     Assert.Equal("FizzBuzz", FizzBuzz.Convert(number));
 }
Exemplo n.º 4
0
 public void return_the_representing_string_when_convert_a_regular_number(int number, String expected)
 {
     Assert.Equal(expected, FizzBuzz.Convert(number));
 }