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

IApplyToTest

public interface IApplyToTest
The IApplyToTest interface is implemented by self-applying attributes that modify the state of a test in some way.
void ApplyToTest(Test test)

Modifies a test as defined for the specific attribute.