C# 클래스 NUnitLite.Runner.TextUI

TextUI is a general purpose class that runs tests and outputs to a TextWriter. Call it from your Main like this: new TextUI(textWriter).Execute(args); OR new TextUI().Execute(args); The provided TextWriter is used by default, unless the arguments to Execute override it using -out. The second form uses the Console, provided it exists on the platform. NOTE: When running on a platform without a Console, such as Windows Phone, the results will simply not appear if you fail to specify a file in the call itself or as an option.
상속: ITestListener
파일 보기 프로젝트 열기: mono/NUnitLite 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Failure bool

공개 메소드들

메소드 설명
Execute ( string args ) : void

Execute a test run based on the aruments passed from Main.

TestFinished ( ITestResult result ) : void

A test has just finished

TestOutput ( TestOutput testOutput ) : void

A test has produced some text output

TestStarted ( ITest test ) : void

A test has just started

TextUI ( ) : System

Initializes a new instance of the TextUI class.

TextUI ( TextWriter writer ) : System

Initializes a new instance of the TextUI class.

TextUI ( TextWriter writer, ITestListener listener ) : System

Initializes a new instance of the TextUI class.

TopLevelHandler ( object sender, UnhandledExceptionEventArgs e ) : void
WriteHeader ( TextWriter writer ) : void

Write the standard header information to a TextWriter.

WriteRuntimeEnvironment ( TextWriter writer ) : void

Write information about the current runtime environment

비공개 메소드들

메소드 설명
ExploreTests ( ) : void
RunTests ( ITestFilter filter ) : void

메소드 상세

Execute() 공개 메소드

Execute a test run based on the aruments passed from Main.
public Execute ( string args ) : void
args string An array of arguments
리턴 void

TestFinished() 공개 메소드

A test has just finished
public TestFinished ( ITestResult result ) : void
result ITestResult The result of the test
리턴 void

TestOutput() 공개 메소드

A test has produced some text output
public TestOutput ( TestOutput testOutput ) : void
testOutput TestOutput A TestOutput object holding the text that was written
리턴 void

TestStarted() 공개 메소드

A test has just started
public TestStarted ( ITest test ) : void
test ITest The test
리턴 void

TextUI() 공개 메소드

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

TextUI() 공개 메소드

Initializes a new instance of the TextUI class.
public TextUI ( TextWriter writer ) : System
writer System.IO.TextWriter The TextWriter to use.
리턴 System

TextUI() 공개 메소드

Initializes a new instance of the TextUI class.
public TextUI ( TextWriter writer, ITestListener listener ) : System
writer System.IO.TextWriter The TextWriter to use.
listener ITestListener The Test listener to use.
리턴 System

TopLevelHandler() 공개 메소드

public TopLevelHandler ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
리턴 void

WriteHeader() 공개 정적인 메소드

Write the standard header information to a TextWriter.
public static WriteHeader ( TextWriter writer ) : void
writer System.IO.TextWriter The TextWriter to use
리턴 void

WriteRuntimeEnvironment() 공개 정적인 메소드

Write information about the current runtime environment
public static WriteRuntimeEnvironment ( TextWriter writer ) : void
writer System.IO.TextWriter The TextWriter to be used
리턴 void

프로퍼티 상세

Failure 공개적으로 프로퍼티

public bool Failure
리턴 bool