public void Setup() { _console = new ConsoleWrapper(); _oldOut = Console.Out; _builder = new StringBuilder(); _writer = new StringWriter(_builder); Console.SetOut(_writer); }
public ConsoleRunner(IAmAHostedProcess hostedProcess, IWrapConsole wrapper) { _hostedProcess = hostedProcess; _wrapper = wrapper; }
public void SetUp() { _mock = new MockRepository(); _hostedProcess = _mock.StrictMock<IAmAHostedProcess>(); _wrapper = _mock.StrictMockWithRemoting<IWrapConsole>(); }
public void SetUp() { _mock = new MockRepository(); _hostedProcess = _mock.StrictMock <IAmAHostedProcess>(); _wrapper = _mock.StrictMockWithRemoting <IWrapConsole>(); }