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"); }
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"); }
private string RunHGCommand(string args, string workingDirectory) { return(shellRunner.RunCommand(GetHGExecutableLocation(), args, workingDirectory)); }