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

TestCaseParameters

The TestCaseParameters class encapsulates method arguments and other selected parameters needed for constructing a parameterized test case.
public object ExpectedResult { get; set; }

The expected result of the test, which must match the method return type.

public bool HasExpectedResult { get; set; }

Gets a value indicating whether an expected result was specified.

Default Constructor creates an empty parameter set

public TestCaseParameters(Exception exception)

Construct a non-runnable ParameterSet, specifying the provider exception that made it invalid.

public TestCaseParameters(object[] args)

Construct a parameter set with a list of arguments

Construct a ParameterSet from an object implementing ITestCaseData