<PackageReference Include="NUnit" Version="5.0.0-beta.1" />

NUnit.Framework.TestCaseData

The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It is derived from TestCaseParameters and adds a fluent syntax for use in initializing the test case.
public TestCaseData(object[] args)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg1, object arg2)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg1, object arg2, object arg3)

Initializes a new instance of the TestCaseData class.

public static TestCaseData<T> Create<T>(T argument)

Construct a TestCaseData with a single argument. If the test is expected to return a value, you can specify it with the Returns<T> method.

public static TestCaseData<T1, T2> Create<T1, T2>(T1 argument1, T2 argument2)

Construct a TestCaseData with a list of arguments. If the test is expected to return a value, you can specify it with the Returns<T> method.

public static TestCaseData<T1, T2, T3> Create<T1, T2, T3>(T1 argument1, T2 argument2, T3 argument3)

Construct a TestCaseData with a list of arguments. If the test is expected to return a value, you can specify it with the Returns<T> method.

public static TestCaseData<T1, T2, T3, T4> Create<T1, T2, T3, T4>(T1 argument1, T2 argument2, T3 argument3, T4 argument4)

Construct a TestCaseData with a list of arguments. If the test is expected to return a value, you can specify it with the Returns<T> method.

public static TestCaseData<T1, T2, T3, T4, T5> Create<T1, T2, T3, T4, T5>(T1 argument1, T2 argument2, T3 argument3, T4 argument4, T5 argument5)

Construct a TestCaseData with a list of arguments. If the test is expected to return a value, you can specify it with the Returns<T> method.