C# 클래스 NUnit.Framework.TestCaseData

The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It provides a number of instance modifiers for use in initializing the test case. Note: Instance modifiers are getters that return the same instance after modifying it's state.
상속: ITestCaseData
파일 보기 프로젝트 열기: antonsamarsky/emitmapper-tools 1 사용 예제들

공개 메소드들

메소드 설명
Ignore ( ) : TestCaseData

Ignores this TestCase.

Ignore ( string reason ) : TestCaseData

Ignores this TestCase, specifying the reason.

Returns ( object result ) : TestCaseData

Sets the expected result for the test

SetCategory ( string category ) : TestCaseData

Applies a category to the test

SetDescription ( string description ) : TestCaseData

Sets the description for the test case being constructed.

SetName ( string name ) : TestCaseData

Sets the name of the test case

SetProperty ( string propName, double propValue ) : TestCaseData

Applies a named property to the test

SetProperty ( string propName, int propValue ) : TestCaseData

Applies a named property to the test

SetProperty ( string propName, string propValue ) : TestCaseData

Applies a named property to the test

TestCaseData ( ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg1, object arg2 ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg1, object arg2, object arg3 ) : System

Initializes a new instance of the T:TestCaseData class.

Throws ( Type exceptionType ) : TestCaseData

Sets the expected exception type for the test

Throws ( string exceptionName ) : TestCaseData

Sets the expected exception type for the test

메소드 상세

Ignore() 공개 메소드

Ignores this TestCase.
public Ignore ( ) : TestCaseData
리턴 TestCaseData

Ignore() 공개 메소드

Ignores this TestCase, specifying the reason.
public Ignore ( string reason ) : TestCaseData
reason string The reason.
리턴 TestCaseData

Returns() 공개 메소드

Sets the expected result for the test
public Returns ( object result ) : TestCaseData
result object The expected result
리턴 TestCaseData

SetCategory() 공개 메소드

Applies a category to the test
public SetCategory ( string category ) : TestCaseData
category string
리턴 TestCaseData

SetDescription() 공개 메소드

Sets the description for the test case being constructed.
public SetDescription ( string description ) : TestCaseData
description string The description.
리턴 TestCaseData

SetName() 공개 메소드

Sets the name of the test case
public SetName ( string name ) : TestCaseData
name string
리턴 TestCaseData

SetProperty() 공개 메소드

Applies a named property to the test
public SetProperty ( string propName, double propValue ) : TestCaseData
propName string
propValue double
리턴 TestCaseData

SetProperty() 공개 메소드

Applies a named property to the test
public SetProperty ( string propName, int propValue ) : TestCaseData
propName string
propValue int
리턴 TestCaseData

SetProperty() 공개 메소드

Applies a named property to the test
public SetProperty ( string propName, string propValue ) : TestCaseData
propName string
propValue string
리턴 TestCaseData

TestCaseData() 공개 메소드

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( ) : System
리턴 System

TestCaseData() 공개 메소드

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg ) : System
arg object The argument.
리턴 System

TestCaseData() 공개 메소드

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg1, object arg2 ) : System
arg1 object The first argument.
arg2 object The second argument.
리턴 System

TestCaseData() 공개 메소드

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg1, object arg2, object arg3 ) : System
arg1 object The first argument.
arg2 object The second argument.
arg3 object The third argument.
리턴 System

Throws() 공개 메소드

Sets the expected exception type for the test
public Throws ( Type exceptionType ) : TestCaseData
exceptionType System.Type Type of the expected exception.
리턴 TestCaseData

Throws() 공개 메소드

Sets the expected exception type for the test
public Throws ( string exceptionName ) : TestCaseData
exceptionName string FullName of the expected exception.
리턴 TestCaseData