예제 #1
0
 public void WhenFizzBuzzIsPassedAMultipleOfFiveItReturnsBuzz(int input)
 {
     FizzBuzz.Evaluate(input).ShouldContain(FizzBuzz.Buzz);
 }
예제 #2
0
 public void WhenFizzBuzzIsPassedAMultipleOfThreeAndFiveItReturnsFizzBuzz(int input)
 {
     FizzBuzz.Evaluate(input).ShouldBe($"{FizzBuzz.Fizz}{FizzBuzz.Buzz}");
 }
예제 #3
0
 public void WhenFizzBuzzIsPassedNonDivisibleNumberItReturnsThatNumber(int input)
 {
     FizzBuzz.Evaluate(input).ShouldBe(input.ToString());
 }