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"); result.Should().BeDecoratedWith<RequiredAttribute>();
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?