C# 클래스 NUnit.Framework.ValuesAttribute

상속: NUnit.Framework.ParameterDataAttribute
파일 보기 프로젝트 열기: nunit/nunit

보호된 프로퍼티들

프로퍼티 타입 설명
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[]