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

37 lines (31 sloc) 0.865 kB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Machine.Specifications.ConsoleRunner.Specs
{
public class FakeConsole : IConsole
{
readonly StringBuilder _console = new StringBuilder();
public List<string> Lines
{
get { return _console.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.None).ToList(); }
}
public void Write(string line)
{
_console.Append(line);
}
public void Write(string line, params object[] parameters)
{
_console.AppendFormat(line, parameters);
}
public void WriteLine(string line)
{
_console.AppendLine(line);
}
public void WriteLine(string line, params object[] parameters)
{
_console.AppendLine(string.Format(line, parameters));
}
}
}
Jump to Line
Something went wrong with that request. Please try again.