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

TestOfAttribute

Indicates the method or class the assembly, test fixture or test method is testing.
using System; namespace NUnit.Framework { [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class TestOfAttribute : PropertyAttribute { public TestOfAttribute(Type type) : base("TestOf", type.FullName) { } public TestOfAttribute(string typeName) : base("TestOf", typeName) { } } }