AttributeConstraint - jnm2/nunit-docs-wiki GitHub Wiki
AttributeConstraint tests for the existence of an attribute on a Type and then applies a constraint to that attribute.
AttributeConstraint(Type type, IConstraint baseConstraint)
Has.Attribute(typeof(TestFixtureAttribute))...
Has.Attribute<TestFixtureAttribute>()...
Assert.That(someObject, Has.Attribute(typeof(TestFixtureAttribute))
.Property("Description").EqualTo("My description"));
Assert.That(someObject, Has.Attribute<TestFixtureAttribute>()
.Property("Description").EqualTo("My description"));