Class ParameterSet
ParameterSet encapsulates method arguments and other selected parameters needed for constructing a parameterized test case.
public class ParameterSet : ITestCaseData, IApplyToTest
- Inheritance
-
ParameterSet
- Implements
- Derived
- Inherited Members
Constructors
ParameterSet()
Default Constructor creates an empty parameter set
public ParameterSet()
ParameterSet(ITestCaseData)
Construct a ParameterSet from an object implementing ITestCaseData
public ParameterSet(ITestCaseData data)
Parameters
data
ITestCaseData
ParameterSet(Exception)
Construct a non-runnable ParameterSet, specifying the provider exception that made it invalid.
public ParameterSet(Exception exception)
Parameters
exception
Exception
ParameterSet(object[])
Construct a parameter set with a list of arguments
public ParameterSet(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[]
ExpectedResult
The expected result of the test, which must match the method return type.
public object ExpectedResult { get; set; }
Property Value
HasExpectedResult
Gets a value indicating whether an expected result was specified.
public bool HasExpectedResult { get; set; }
Property Value
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
RunState
The RunState for this set of parameters.
public RunState RunState { get; set; }
Property Value
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
Methods
ApplyToTest(Test)
Applies ParameterSet _values to the test itself.
public void ApplyToTest(Test test)
Parameters
test
TestA test.