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

TestParameters

public abstract class TestParameters : ITestData, IApplyToTest
TestParameters is the abstract base class for all classes that know how to provide data for constructing a test.
public object[] Arguments { get; }

The arguments to be used in running the test, which must match the method signature.

public object[] OriginalArguments { get; }

The original arguments provided by the user, used for display purposes.

public IPropertyBag Properties { get; }

Gets the property dictionary for this test

public RunState RunState { get; set; }

The RunState for this set of parameters.

public string TestName { get; set; }

A name to be used for this test case in lieu of the standard generated name containing the argument list.

public TestParameters()

Default Constructor creates an empty parameter set

public TestParameters(object[] args)

Construct a parameter set with a list of arguments

public TestParameters(Exception exception)

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

Construct a ParameterSet from an object implementing ITestData

public void ApplyToTest(Test test)

Applies ParameterSet values to the test itself.