C# Класс PclUnit.Style.Nunit.RandomAttribute

RandomAttribute is used to supply a set of random values to a single parameter of a parameterized test.
Наследование: ValuesAttribute
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

GetData() публичный Метод

Get the collection of values to be used as arguments
public GetData ( ParameterInfo parameter ) : IEnumerable
parameter System.Reflection.ParameterInfo
Результат IEnumerable

RandomAttribute() публичный Метод

Construct a set of doubles from min to max
public RandomAttribute ( double min, double max, int count ) : System
min double
max double
count int
Результат System

RandomAttribute() публичный Метод

Construct a set of doubles from 0.0 to 1.0, specifying only the count.
public RandomAttribute ( int count ) : System
count int
Результат System

RandomAttribute() публичный Метод

Construct a set of ints from min to max
public RandomAttribute ( int min, int max, int count ) : System
min int
max int
count int
Результат System