When the instance Equals method was called, you can get an NullReferenceException if the
specified property value was null.
To avoid this behavior, I am suggesting the use of static string.Equals instead it. So null values wil be considered different without throws any unexpect exception.
On the methods AreEquals and AreNotEqual in the class Flunt/Validations/StringValidationContract.cs there ia a little problem in a specific situation:
When the instance Equals method was called, you can get an
NullReferenceException
if the specified property value wasnull
.To avoid this behavior, I am suggesting the use of static string.Equals instead it. So
null
values wil be considered different without throws any unexpect exception.