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

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 { [NullableContext(2)] [Nullable(0)] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] public class TestCaseAttribute<T1, T2> : TestCaseAttribute { [NullableContext(1)] public TestCaseAttribute(T1 argument1, T2 argument2) : base(new object[2] { argument1, argument2 }) { base.TypeArgs = new Type[2] { typeof(T1), typeof(T2) }; } } }