public Property anything_divisible_by_three_and_five_returns_fizzbuzz(int input) { var actual = Fizz.Buzz(input); // Assert.True(actual=="FizzBuzz"); return((actual == "FizzBuzz").ToProperty()); }
public Property anything_not_divisible_by_three_and_five_should_return_value_as_string(int input) { Func <bool> property = () => Fizz.Buzz(input) == input.ToString(); return(property.When(input % 3 != 0 && input % 5 != 0).Label($"Failed on input {input}")); }
public Property anything_divisible_by_five_but_not_three_returns_buzz(int input) { Func <bool> property = () => Fizz.Buzz(input) == "Buzz"; return(property.When(input % 3 != 0 && input % 5 == 0)); }