IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.TestCaseParameters Class Reference

The TestCaseParameters class encapsulates method arguments and other selected parameters needed for constructing a parameterized test case. More...

+ Inheritance diagram for NUnit.Framework.Internal.TestCaseParameters:
+ Collaboration diagram for NUnit.Framework.Internal.TestCaseParameters:

Public Member Functions

 TestCaseParameters ()
 Default Constructor creates an empty parameter set More...
 
 TestCaseParameters (Exception exception)
 Construct a non-runnable ParameterSet, specifying the provider exception that made it invalid. More...
 
 TestCaseParameters (object[] args)
 Construct a parameter set with a list of arguments More...
 
 TestCaseParameters (ITestCaseData data)
 Construct a ParameterSet from an object implementing ITestCaseData More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.TestParameters
 TestParameters ()
 Default Constructor creates an empty parameter set More...
 
 TestParameters (object[] args)
 Construct a parameter set with a list of arguments More...
 
 TestParameters (Exception exception)
 Construct a non-runnable ParameterSet, specifying the provider exception that made it invalid. More...
 
 TestParameters (ITestData data)
 Construct a ParameterSet from an object implementing ITestData More...
 
void ApplyToTest (Test test)
 Applies ParameterSet _values to the test itself. More...
 

Properties

object ExpectedResult [get, set]
 The expected result of the test, which must match the method return type. More...
 
bool HasExpectedResult [get, set]
 Gets a value indicating whether an expected result was specified. More...
 
- Properties inherited from NUnit.Framework.Internal.TestParameters
RunState RunState [get, set]
 The RunState for this set of parameters. More...
 
object[] Arguments [get, set]
 The arguments to be used in running the test, which must match the method signature. More...
 
string TestName [get, set]
 A name to be used for this test case in lieu of the standard generated name containing the argument list. More...
 
IPropertyBag Properties [get, private set]
 Gets the property dictionary for this test More...
 
object[] OriginalArguments [get, private set]
 The original arguments provided by the user, used for display purposes. More...
 
- Properties inherited from NUnit.Framework.Interfaces.ITestData
string TestName [get]
 Gets the name to be used for the test More...
 
RunState RunState [get]
 Gets the RunState for this test case. More...
 
object[] Arguments [get]
 Gets the argument list to be provided to the test More...
 
IPropertyBag Properties [get]
 Gets the property dictionary for the test case More...
 
- Properties inherited from NUnit.Framework.Interfaces.ITestCaseData
object ExpectedResult [get]
 Gets the expected result of the test case More...
 
bool HasExpectedResult [get]
 Returns true if an expected result has been set More...
 

Private Attributes

object _expectedResult
 The expected result to be returned More...
 

Detailed Description

The TestCaseParameters class encapsulates method arguments and other selected parameters needed for constructing a parameterized test case.

Constructor & Destructor Documentation

NUnit.Framework.Internal.TestCaseParameters.TestCaseParameters ( )
inline

Default Constructor creates an empty parameter set

NUnit.Framework.Internal.TestCaseParameters.TestCaseParameters ( Exception  exception)
inline

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

NUnit.Framework.Internal.TestCaseParameters.TestCaseParameters ( object[]  args)
inline

Construct a parameter set with a list of arguments

Parameters
args
NUnit.Framework.Internal.TestCaseParameters.TestCaseParameters ( ITestCaseData  data)
inline

Construct a ParameterSet from an object implementing ITestCaseData

Parameters
data

References NUnit.Framework.Interfaces.ITestCaseData.ExpectedResult, and NUnit.Framework.Interfaces.ITestCaseData.HasExpectedResult.

Member Data Documentation

object NUnit.Framework.Internal.TestCaseParameters._expectedResult
private

The expected result to be returned

Property Documentation

object NUnit.Framework.Internal.TestCaseParameters.ExpectedResult
getset

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

Referenced by NUnit.Framework.TestAttribute.BuildFrom().

bool NUnit.Framework.Internal.TestCaseParameters.HasExpectedResult
getset

Gets a value indicating whether an expected result was specified.


The documentation for this class was generated from the following file: