Class TestCaseParameters
The TestCaseParameters class encapsulates method arguments and other selected parameters needed for constructing a parameterized test case.
public class TestCaseParameters : TestParameters, ITestCaseData, ITestData, IApplyToTest
- Inheritance
-
TestCaseParameters
- Implements
- Derived
- Inherited Members
Constructors
TestCaseParameters()
Default Constructor creates an empty parameter set
public TestCaseParameters()
TestCaseParameters(ITestCaseData)
Construct a ParameterSet from an object implementing ITestCaseData
public TestCaseParameters(ITestCaseData data)
Parameters
data
ITestCaseData
TestCaseParameters(Exception)
Construct a non-runnable ParameterSet, specifying the provider exception that made it invalid.
public TestCaseParameters(Exception exception)
Parameters
exception
Exception
TestCaseParameters(object[])
Construct a parameter set with a list of arguments
public TestCaseParameters(object[] args)
Parameters
args
object[]
Properties
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; }