TestCaseAttribute<T1, T2, T3, T4, T5>
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,
T3,
T4,
T5> :
TestCaseAttribute
{
[
NullableContext(
1)]
public TestCaseAttribute(
T1 argument1,
T2 argument2,
T3 argument3,
T4 argument4,
T5 argument5)
:
base(
argument1,
argument2,
argument3,
argument4,
argument5)
{
base.
TypeArgs =
new Type[
5] {
typeof(
T1),
typeof(
T2),
typeof(
T3),
typeof(
T4),
typeof(
T5)
};
}
}
}