There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Cannot test attributes of properties
I'm trying to assert that a particular property on a class has a particular attribute applied, using v1.7.1. The current documentation, suggests that I should be able to use:
PropertyInfo result = typeof (CreateUserModel).GetProperty("LoginName");
However, this does not work as there is no BeDecoratedWith extension method on the PropertyInfo class - rather there is one on the FluentAssertions class PropertyInfoAssociations. What's the best way of achieving my desired result using FA?