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

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