C# Class NUnit.Framework.ValuesAttribute

Inheritance: NUnit.Framework.ParameterDataAttribute
Show file Open project: nunit/nunit

Protected Properties

Property Type Description
data object[]

Public Methods

Method 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

Method Description
GetData ( Type targetType ) : IEnumerable

Method Details

GetData() public method

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

ValuesAttribute() public method

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

ValuesAttribute() public method

Construct with one argument
public ValuesAttribute ( object arg1 ) : System
arg1 object
return System

ValuesAttribute() public method

Construct with two arguments
public ValuesAttribute ( object arg1, object arg2 ) : System
arg1 object
arg2 object
return System

ValuesAttribute() public method

Construct with three arguments
public ValuesAttribute ( object arg1, object arg2, object arg3 ) : System
arg1 object
arg2 object
arg3 object
return System

Property Details

data protected 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
return object[]