C# 클래스 PclUnit.Style.Xunit.DataAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
GetData ( MethodInfo methodUnderTest, Type parameterTypes ) : IEnumerable

Returns the data to be used to test the theory.

The parameterTypes parameter is provided so that the test data can be converted to the destination parameter type when necessary. Generally, data should NOT be automatically converted, UNLESS the source data format does not have rich types (for example, all numbers in Excel spreadsheets are returned as Double even if they are integers). Derivers of this class should NOT throw exceptions for mismatched types or mismatched number of parameters; the test framework will throw these exceptions at the correct time.

메소드 상세

GetData() 공개 추상적인 메소드

Returns the data to be used to test the theory.
The parameterTypes parameter is provided so that the test data can be converted to the destination parameter type when necessary. Generally, data should NOT be automatically converted, UNLESS the source data format does not have rich types (for example, all numbers in Excel spreadsheets are returned as Double even if they are integers). Derivers of this class should NOT throw exceptions for mismatched types or mismatched number of parameters; the test framework will throw these exceptions at the correct time.
public abstract GetData ( MethodInfo methodUnderTest, Type parameterTypes ) : IEnumerable
methodUnderTest System.Reflection.MethodInfo The method that is being tested
parameterTypes System.Type The types of the parameters for the test method
리턴 IEnumerable