<PackageReference Include="NUnit" Version="4.3.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<[Nullable(2)] T> : TestCaseAttribute { [NullableContext(1)] public TestCaseAttribute(T argument) : base(new object[1] { argument }) { base.TypeArgs = new Type[1] { typeof(T) }; } } }