Example #1
0
        public void Setup()
        {
            _console = new ConsoleWrapper();

            _oldOut = Console.Out;
            _builder = new StringBuilder();
            _writer = new StringWriter(_builder);
            Console.SetOut(_writer);
        }
Example #2
0
        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;
 }
Example #4
0
 public ConsoleRunner(IAmAHostedProcess hostedProcess, IWrapConsole wrapper)
 {
     _hostedProcess = hostedProcess;
     _wrapper = wrapper;
 }
Example #5
0
 public void SetUp()
 {
     _mock = new MockRepository();
     _hostedProcess = _mock.StrictMock<IAmAHostedProcess>();
     _wrapper = _mock.StrictMockWithRemoting<IWrapConsole>();
 }
Example #6
0
 public void SetUp()
 {
     _mock          = new MockRepository();
     _hostedProcess = _mock.StrictMock <IAmAHostedProcess>();
     _wrapper       = _mock.StrictMockWithRemoting <IWrapConsole>();
 }