C# Class PclUnit.Style.Nunit.RandomAttribute

RandomAttribute is used to supply a set of random values to a single parameter of a parameterized test.
Inheritance: ValuesAttribute
Show file Open project: jbtule/PclUnit

Public Methods

Method Description
GetData ( ParameterInfo parameter ) : IEnumerable

Get the collection of values to be used as arguments

RandomAttribute ( double min, double max, int count ) : System

Construct a set of doubles from min to max

RandomAttribute ( int count ) : System

Construct a set of doubles from 0.0 to 1.0, specifying only the count.

RandomAttribute ( int min, int max, int count ) : System

Construct a set of ints from min to max

Method Details

GetData() public method

Get the collection of values to be used as arguments
public GetData ( ParameterInfo parameter ) : IEnumerable
parameter System.Reflection.ParameterInfo
return IEnumerable

RandomAttribute() public method

Construct a set of doubles from min to max
public RandomAttribute ( double min, double max, int count ) : System
min double
max double
count int
return System

RandomAttribute() public method

Construct a set of doubles from 0.0 to 1.0, specifying only the count.
public RandomAttribute ( int count ) : System
count int
return System

RandomAttribute() public method

Construct a set of ints from min to max
public RandomAttribute ( int min, int max, int count ) : System
min int
max int
count int
return System