C# Класс NUnit.Framework.ValuesAttribute

Наследование: NUnit.Framework.ParameterDataAttribute
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
data object[]

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

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

Приватные методы

Метод Описание
GetData ( Type targetType ) : IEnumerable

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

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

Get the collection of _values to be used as arguments
public GetData ( IParameterInfo parameter ) : IEnumerable
parameter IParameterInfo
Результат IEnumerable

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

Constructs for use with an Enum parameter. Will pass every enum value in to the test.
public ValuesAttribute ( ) : System
Результат System

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

Construct with one argument
public ValuesAttribute ( object arg1 ) : System
arg1 object
Результат System

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

Construct with two arguments
public ValuesAttribute ( object arg1, object arg2 ) : System
arg1 object
arg2 object
Результат System

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

Construct with three arguments
public ValuesAttribute ( object arg1, object arg2, object arg3 ) : System
arg1 object
arg2 object
arg3 object
Результат System

Описание свойств

data защищенное свойство

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
Результат object[]