TestCaseData<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
{
public class TestCaseData<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T> :
TestCaseData
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
public TestCaseData(
T argument)
:
base(
new object[
1] {
argument
})
{
base.
TypeArgs =
new Type[
1] {
typeof(
T)
};
}
}
}