TestCaseAttribute<T1, T2, T3>
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,
T3> :
TestCaseAttribute
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
public TestCaseAttribute(
T1 argument1,
T2 argument2,
T3 argument3)
:
base(
new object[
3] {
argument1,
argument2,
argument3
})
{
base.
TypeArgs =
new Type[
3] {
typeof(
T1),
typeof(
T2),
typeof(
T3)
};
}
}
}