While writing this method for a custom NUnit Constraint.
private void AddMatchFailure(string failureName, TExpected expected, TActu
I'm using something like this to check for null on generic types:
if (Equals(result, Default(T)))