You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checkk.CheckGenericInvarian.FieldName should handle properties. Target.Body seems to be a member expression if set but a propertyExpression if not set:
class Person { public string Name{get;set;}}
var person1 = new Person { Name = "foo" };
Check.That(() => person1.Name).IsNotNullOrEmpty(); // works
var person2 = new Person();
Check.That(() => person2.Name).IsNotNullOrEmpty(); // throws an argument exception in CheckGenericInvariant.FieldName
The text was updated successfully, but these errors were encountered:
becdetat
changed the title
gracefully handle properties that are methods
gracefully handle unset properties
Jul 25, 2015
Checkk.CheckGenericInvarian.FieldName
should handle properties.Target.Body
seems to be a member expression if set but a propertyExpression if not set:The text was updated successfully, but these errors were encountered: