Added a different implementation for FizzBuzz using Reactive extensions. The changes are described at: http://blog.drorhelper.com/2015/02/fizzbuzz-tdd-kata-using-reactive.html Pull Request by: https://github.com/dhelper These changes have been manually merged into repository
Beispiel #1
0
        public void GivenNumberDividedBy3And5_ReturnFizzBuzzInstead()
        {
            var result = FizzBuzzRx.Generate(15);

            Assert.That(result, Is.EqualTo("1,2,Fizz,4,Buzz,Fizz,7,8,Fizz,Buzz,11,Fizz,13,14,FizzBuzz,"));
        }
Beispiel #2
0
 public string GivenNumberUpTo2_ReturnNumbersCommaDelimited(int input)
 {
     return(FizzBuzzRx.Generate(input));
 }
Beispiel #3
0
 public string GivenNumberDividedBy5_ReturnBuzzInstead(int input)
 {
     return(FizzBuzzRx.Generate(input));
 }
Beispiel #4
0
        public void GivenNumberBelowOne_ReturnEmptyString()
        {
            var result = FizzBuzzRx.Generate(-1);

            Assert.That(result, Is.Empty);
        }