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

TestOfAttribute

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