C# Class NUnit.Framework.ValuesAttribute

Inheritance: NUnit.Framework.ParameterDataAttribute
Afficher le fichier Open project: nunit/nunit

Protected Properties

Свойство Type Description
data object[]

Méthodes publiques

Méthode Description
GetData ( IParameterInfo parameter ) : IEnumerable

Get the collection of _values to be used as arguments

ValuesAttribute ( ) : System

Constructs for use with an Enum parameter. Will pass every enum value in to the test.

ValuesAttribute ( object arg1 ) : System

Construct with one argument

ValuesAttribute ( object arg1, object arg2 ) : System

Construct with two arguments

ValuesAttribute ( object arg1, object arg2, object arg3 ) : System

Construct with three arguments

Private Methods

Méthode Description
GetData ( Type targetType ) : IEnumerable

Method Details

GetData() public méthode

Get the collection of _values to be used as arguments
public GetData ( IParameterInfo parameter ) : IEnumerable
parameter IParameterInfo
Résultat IEnumerable

ValuesAttribute() public méthode

Constructs for use with an Enum parameter. Will pass every enum value in to the test.
public ValuesAttribute ( ) : System
Résultat System

ValuesAttribute() public méthode

Construct with one argument
public ValuesAttribute ( object arg1 ) : System
arg1 object
Résultat System

ValuesAttribute() public méthode

Construct with two arguments
public ValuesAttribute ( object arg1, object arg2 ) : System
arg1 object
arg2 object
Résultat System

ValuesAttribute() public méthode

Construct with three arguments
public ValuesAttribute ( object arg1, object arg2, object arg3 ) : System
arg1 object
arg2 object
arg3 object
Résultat System

Property Details

data protected_oe property

The collection of data to be returned. Must be set by any derived attribute classes. We use an object[] so that the individual elements may have their type changed in GetData if necessary
protected object[] data
Résultat object[]