1
Vote

null values break certain validation methods

description

For example, if I pass a null string to .That(null, "field name").IsShorterThan(50) I get a null reference exception. It seems to me that all validation methods should handle nulls and fail validation if nulls are present, unless it is what is being checked.

comments