C# 클래스 Jwc.Experiment.Xunit.ExceptionCommand

상속: TestCommand
파일 보기 프로젝트 열기: jwChung/Experimentalism 1 사용 예제들

공개 메소드들

메소드 설명
ExceptionCommand ( IMethodInfo method, Exception exception ) : System

Initializes a new instance of the ExceptionCommand class.

Execute ( object testClass ) : MethodResult

이 테스트 실행 결과는 항상 FailedResult를 리턴함.

비공개 메소드들

메소드 설명
EnsureIsNotNull ( IMethodInfo method ) : IMethodInfo

메소드 상세

ExceptionCommand() 공개 메소드

Initializes a new instance of the ExceptionCommand class.
public ExceptionCommand ( IMethodInfo method, Exception exception ) : System
method IMethodInfo /// The method under test. ///
exception System.Exception /// The exception to be expressed. ///
리턴 System

Execute() 공개 메소드

이 테스트 실행 결과는 항상 FailedResult를 리턴함.
public Execute ( object testClass ) : MethodResult
testClass object /// 테스트 메소드의 owner. ///
리턴 MethodResult