Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b770ab3856
Fetching contributors…

Cannot retrieve contributors at this time

71 lines (57 sloc) 1.33 kb
using Machine.Specifications.Runner;
namespace Machine.Specifications.ConsoleRunner.Outputs
{
class ProgressOutput : IOutput
{
readonly IConsole _console;
public ProgressOutput(IConsole console)
{
_console = console;
}
public void RunStart()
{
}
public void RunEnd()
{
EmptyLine();
}
public void AssemblyStart(AssemblyInfo assembly)
{
EmptyLine();
_console.WriteLine("Specs in " + assembly.Name + ":");
}
public void AssemblyEnd(AssemblyInfo assembly)
{
EmptyLine();
}
public void ContextStart(ContextInfo context)
{
}
public void ContextEnd(ContextInfo context)
{
}
public void SpecificationStart(SpecificationInfo specification)
{
}
public void Passing(SpecificationInfo specification)
{
_console.Write(".");
}
public void NotImplemented(SpecificationInfo specification)
{
_console.Write("*");
}
public void Ignored(SpecificationInfo specification)
{
_console.Write("I");
}
public void Failed(SpecificationInfo specification, Result exception)
{
_console.Write("F");
}
void EmptyLine()
{
_console.WriteLine("");
}
}
}
Jump to Line
Something went wrong with that request. Please try again.