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

AttributeHelper

public static class AttributeHelper
Provides a platform-independent methods for getting attributes for use by AttributeConstraint and AttributeExistsConstraint.
public static Attribute[] GetCustomAttributes(object actual, Type attributeType, bool inherit)

Gets the custom attributes from the given object.