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

TestCaseAttribute<T1, T2>

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