Exemplo n.º 1
0
        public void Setup()
        {
            _console = new ConsoleWrapper();

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