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

TestCaseAttribute<T>

Marks a method as a parameterized test suite and provides arguments for each test case.
using System; using System.Runtime.CompilerServices; namespace NUnit.Framework { [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] public class TestCaseAttribute<[System.Runtime.CompilerServices.Nullable(2)] T> : TestCaseAttribute { [System.Runtime.CompilerServices.NullableContext(1)] public TestCaseAttribute(T argument) : base(new object[1] { argument }) { base.TypeArgs = new Type[1] { typeof(T) }; } } }