<PackageReference Include="NUnit" Version="4.2.2" />

NUnit.Framework.Constraints.AttributeConstraint

AttributeConstraint tests that a specified attribute is present on a Type or other provider and that the value of the attribute satisfies some other constraint.
public AttributeConstraint(Type type, IConstraint baseConstraint)

Constructs an AttributeConstraint for a specified attribute Type and base constraint.