protected override void Because()
        {
            factory = MockRepository.GenerateMock<IProcessFactory>();
            factory.Expect(x => x.GetProcess("cmd", "foo", "bar")).Return(new StubProcess());

            runner = new CommandLineRunner(factory);
            runner.RunCommand("cmd", "foo", "bar");
        }
Beispiel #2
0
        protected override void Because()
        {
            factory = MockRepository.GenerateMock <IProcessFactory>();
            factory.Expect(x => x.GetProcess("cmd", "foo", "bar")).Return(new StubProcess());

            runner = new CommandLineRunner(factory);
            runner.RunCommand("cmd", "foo", "bar");
        }
Beispiel #3
0
 private string RunHGCommand(string args, string workingDirectory)
 {
     return(shellRunner.RunCommand(GetHGExecutableLocation(), args, workingDirectory));
 }