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

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.

Marks the test case as explicit.

public TestCaseData Explicit(string reason)

Marks the test case as explicit, specifying the reason.

public IgnoredTestCaseData Ignore(string reason)

Ignores this TestCase, specifying the reason.

public TestCaseData Returns(object result)

Sets the expected result for the test

public TestCaseData SetArgDisplayNames(string[] displayNames)

Sets the list of display names to use as the parameters in the test name.

public TestCaseData SetCategory(string category)

Applies a category to the test

public TestCaseData SetDescription(string description)

Sets the description for the test case being constructed.

public TestCaseData SetName(string name)

Sets the name of the test case

public TestCaseData SetProperty(string propName, string propValue)

Applies a named property to the test

public TestCaseData SetProperty(string propName, int propValue)

Applies a named property to the test

public TestCaseData SetProperty(string propName, double propValue)

Applies a named property to the test