Logic inverted between
GuardAgainstExpression.cs
and
GuardAgainstExpressionDeprecated.cs
before it was:
if (!func(input)) throw
now it's:
if (func(input)) throw
in tests:
before it was :
"Value is not equal to 10"
now it's:
"Value cannot be 10"
should imho be mentioned in
[Obsolete("Deprecated: Switch to Expression for validation.")]
Steps to Reproduce:
- look at the tests for GuardAgainstExpression and GuardAgainstExpressionDeprecated