C# Class Xunit.Reporting.Internal.Generator.TextReportGenerator

A report generator which simply creates an ASCI text file.
Inheritance: IReportGenerator
Show file Open project: BjRo/xunitbddextensions

Public Methods

Method Description
Generate ( IReport report ) : void

Generates a report filled with the content supplied by report.

TextReportGenerator ( IFileWriter fileWriter ) : System

Initializes a new instance of the TextReportGenerator class.

Private Methods

Method Description
CreateContent ( IReport report ) : string
WriteConcern ( Concern concern, StringBuilder reportBuilder ) : void
WriteContext ( Context context, StringBuilder reportBuilder ) : void
WriteHeader ( IReport report, StringBuilder reportBuilder ) : void
WriteObservation ( Observation observation, StringBuilder reportBuilder ) : void

Method Details

Generate() public method

Generates a report filled with the content supplied by report.
public Generate ( IReport report ) : void
report IReport Specifies the report model.
return void

TextReportGenerator() public method

Initializes a new instance of the TextReportGenerator class.
public TextReportGenerator ( IFileWriter fileWriter ) : System
fileWriter IFileWriter The file writer.
return System