Quantcast
Channel: Fluent Assertions
Viewing all articles
Browse latest Browse all 1402

Commented Issue: PropertyAssertions.AllProperties() throws NRE for properties with no getter [11808]

$
0
0
If you have an object that has a property with no get method (ie, only a setter), then calling .AllProperties() with that object results in a NullReferenceException.

The error is in PropertyAssertions.AddPublicProperties() (line 59)
the method should check if the propertyInfo.GetGetMethod(true) returns null.
Comments: Associated with changeset 74292.

Viewing all articles
Browse latest Browse all 1402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>