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

RandomAttribute is used to supply a set of random _values to a single parameter of a parameterized test. More...

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

Classes

class  ByteDataSource
 
class  DecimalDataSource
 
class  DoubleDataSource
 
class  EnumDataSource
 
class  FloatDataSource
 
class  IntDataSource
 
class  LongDataSource
 
class  RandomDataConverter
 
class  RandomDataSource
 
class  RandomDataSource< T >
 
class  SByteDataSource
 
class  ShortDataSource
 
class  UIntDataSource
 
class  ULongDataSource
 
class  UShortDataSource
 

Public Member Functions

 RandomAttribute (int count)
 Construct a random set of values appropriate for the Type of the parameter on which the attribute appears, specifying only the count. More...
 
 RandomAttribute (int min, int max, int count)
 Construct a set of ints within a specified range More...
 
 RandomAttribute (uint min, uint max, int count)
 Construct a set of unsigned ints within a specified range More...
 
 RandomAttribute (long min, long max, int count)
 Construct a set of longs within a specified range More...
 
 RandomAttribute (ulong min, ulong max, int count)
 Construct a set of unsigned longs within a specified range More...
 
 RandomAttribute (short min, short max, int count)
 Construct a set of shorts within a specified range More...
 
 RandomAttribute (ushort min, ushort max, int count)
 Construct a set of unsigned shorts within a specified range More...
 
 RandomAttribute (double min, double max, int count)
 Construct a set of doubles within a specified range More...
 
 RandomAttribute (float min, float max, int count)
 Construct a set of floats within a specified range More...
 
 RandomAttribute (byte min, byte max, int count)
 Construct a set of bytes within a specified range More...
 
 RandomAttribute (sbyte min, sbyte max, int count)
 Construct a set of sbytes within a specified range More...
 
IEnumerable GetData (IParameterInfo parameter)
 Get the collection of _values to be used as arguments. 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...
 

Private Member Functions

bool WeConvert (Type sourceType, Type targetType)
 

Private Attributes

RandomDataSource _source
 
int _count
 

Detailed Description

RandomAttribute is used to supply a set of random _values to a single parameter of a parameterized test.

Constructor & Destructor Documentation

NUnit.Framework.RandomAttribute.RandomAttribute ( int  count)
inline

Construct a random set of values appropriate for the Type of the parameter on which the attribute appears, specifying only the count.

Parameters
count
NUnit.Framework.RandomAttribute.RandomAttribute ( int  min,
int  max,
int  count 
)
inline

Construct a set of ints within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( uint  min,
uint  max,
int  count 
)
inline

Construct a set of unsigned ints within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( long  min,
long  max,
int  count 
)
inline

Construct a set of longs within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( ulong  min,
ulong  max,
int  count 
)
inline

Construct a set of unsigned longs within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( short  min,
short  max,
int  count 
)
inline

Construct a set of shorts within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( ushort  min,
ushort  max,
int  count 
)
inline

Construct a set of unsigned shorts within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( double  min,
double  max,
int  count 
)
inline

Construct a set of doubles within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( float  min,
float  max,
int  count 
)
inline

Construct a set of floats within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( byte  min,
byte  max,
int  count 
)
inline

Construct a set of bytes within a specified range

NUnit.Framework.RandomAttribute.RandomAttribute ( sbyte  min,
sbyte  max,
int  count 
)
inline

Construct a set of sbytes within a specified range

Member Function Documentation

IEnumerable NUnit.Framework.RandomAttribute.GetData ( IParameterInfo  parameter)
inline
bool NUnit.Framework.RandomAttribute.WeConvert ( Type  sourceType,
Type  targetType 
)
inlineprivate

Member Data Documentation

RandomDataSource NUnit.Framework.RandomAttribute._source
private
int NUnit.Framework.RandomAttribute._count
private

The documentation for this class was generated from the following file: