C# Class Bickle.Listeners.ConsoleListener

Inheritance: ITestResultListener
Datei anzeigen Open project: davidmfoley/bickle Class Usage Examples

Public Methods

Method Description
Failed ( IExample example, Exception exception ) : void
Finished ( ) : void
Ignored ( IExample example ) : void
Pending ( IExample example ) : void
Success ( IExample example ) : void

Protected Methods

Method Description
Write ( MessageType messageType, string message ) : void

Private Methods

Method Description
CreateFailureMessage ( IExample example, Exception exception ) : string
GetExceptionMessage ( Exception exception ) : string
WriteCount ( string single, string plural, int count, MessageType nonZeroColor ) : void
WriteLine ( MessageType messageType, string message ) : void
WriteLine ( string message ) : void
WriteSpecInfos ( string title, IEnumerable infos, MessageType messageType ) : void

Method Details

Failed() public method

public Failed ( IExample example, Exception exception ) : void
example IExample
exception System.Exception
return void

Finished() public method

public Finished ( ) : void
return void

Ignored() public method

public Ignored ( IExample example ) : void
example IExample
return void

Pending() public method

public Pending ( IExample example ) : void
example IExample
return void

Success() public method

public Success ( IExample example ) : void
example IExample
return void

Write() protected abstract method

protected abstract Write ( MessageType messageType, string message ) : void
messageType MessageType
message string
return void