ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.
More...
|
string | SourceName [get, private set] |
| The name of a the method, property or fiend to be used as a source More...
|
|
Type | SourceType [get, private set] |
| A Type to be used as a source More...
|
|
ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.
NUnit.Framework.ValueSourceAttribute.ValueSourceAttribute |
( |
string |
sourceName | ) |
|
|
inline |
Construct with the name of the factory - for use with languages that don't support params arrays.
- Parameters
-
sourceName | The name of a static method, property or field that will provide data. |
NUnit.Framework.ValueSourceAttribute.ValueSourceAttribute |
( |
Type |
sourceType, |
|
|
string |
sourceName |
|
) |
| |
|
inline |
Construct with a Type and name - for use with languages that don't support params arrays.
- Parameters
-
sourceType | The Type that will provide data |
sourceName | The name of a static method, property or field that will provide data. |
IEnumerable NUnit.Framework.ValueSourceAttribute.GetData |
( |
IParameterInfo |
parameter | ) |
|
|
inline |
Gets an enumeration of data items for use as arguments for a test method parameter.
- Parameters
-
parameter | The parameter for which data is needed |
- Returns
- An enumeration containing individual data items
Implements NUnit.Framework.Interfaces.IParameterDataSource.
IEnumerable NUnit.Framework.ValueSourceAttribute.GetDataSource |
( |
IParameterInfo |
parameter | ) |
|
|
inlineprivate |
static void NUnit.Framework.ValueSourceAttribute.ThrowInvalidDataSourceException |
( |
| ) |
|
|
inlinestaticprivate |
string NUnit.Framework.ValueSourceAttribute.SourceName |
|
getprivate set |
The name of a the method, property or fiend to be used as a source
Type NUnit.Framework.ValueSourceAttribute.SourceType |
|
getprivate set |
A Type to be used as a source
The documentation for this class was generated from the following file: