Table of Contents

Class TestParameters

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

TestParameters is the abstract base class for all classes that know how to provide data for constructing a test.

public abstract class TestParameters : ITestData, IApplyToTest
Inheritance
TestParameters
Implements
Derived
Inherited Members

Constructors

TestParameters()

Default Constructor creates an empty parameter set

public TestParameters()

TestParameters(ITestData)

Construct a ParameterSet from an object implementing ITestData

public TestParameters(ITestData data)

Parameters

data ITestData

TestParameters(Exception)

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

public TestParameters(Exception exception)

Parameters

exception Exception

TestParameters(object[])

Construct a parameter set with a list of arguments

public TestParameters(object[] args)

Parameters

args object[]

Properties

Arguments

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

public object[] Arguments { get; }

Property Value

object[]

OriginalArguments

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

public object[] OriginalArguments { get; }

Property Value

object[]

Properties

Gets the property dictionary for this test

public IPropertyBag Properties { get; }

Property Value

IPropertyBag

RunState

The RunState for this set of parameters.

public RunState RunState { get; set; }

Property Value

RunState

TestName

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

public string TestName { get; set; }

Property Value

string

Methods

ApplyToTest(Test)

Applies ParameterSet _values to the test itself.

public void ApplyToTest(Test test)

Parameters

test Test

A test.