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.ValueSourceAttribute Class Reference

ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method. More...

+ Inheritance diagram for NUnit.Framework.ValueSourceAttribute:
+ Collaboration diagram for NUnit.Framework.ValueSourceAttribute:

Public Member Functions

 ValueSourceAttribute (string sourceName)
 Construct with the name of the factory - for use with languages that don't support params arrays. More...
 
 ValueSourceAttribute (Type sourceType, string sourceName)
 Construct with a Type and name - for use with languages that don't support params arrays. More...
 
IEnumerable GetData (IParameterInfo parameter)
 Gets an enumeration of data items for use as arguments for a test method parameter. More...
 
- Public Member Functions inherited from NUnit.Framework.DataAttribute
 DataAttribute ()
 Default constructor More...
 
- Public Member Functions inherited from NUnit.Framework.NUnitAttribute
 NUnitAttribute ()
 Default constructor More...
 

Properties

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...
 

Private Member Functions

IEnumerable GetDataSource (IParameterInfo parameter)
 

Static Private Member Functions

static void ThrowInvalidDataSourceException ()
 

Detailed Description

ValueSourceAttribute indicates the source to be used to provide data for one parameter of a test method.

Constructor & Destructor Documentation

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
sourceNameThe 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
sourceTypeThe Type that will provide data
sourceNameThe name of a static method, property or field that will provide data.

Member Function Documentation

IEnumerable NUnit.Framework.ValueSourceAttribute.GetData ( IParameterInfo  parameter)
inline

Gets an enumeration of data items for use as arguments for a test method parameter.

Parameters
parameterThe parameter for which data is needed
Returns
An enumeration containing individual data items

Implements NUnit.Framework.Interfaces.IParameterDataSource.

static void NUnit.Framework.ValueSourceAttribute.ThrowInvalidDataSourceException ( )
inlinestaticprivate

Property Documentation

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: