Esempio n. 1
0
 public void PassesRunProjectInstruction(
     string path,
     string args,
     ProjectRunProcessStartInfoProvider sut)
 {
     sut.GetStart(path, args);
     sut.CmdStartConstructor.Received(1)
     .Construct("run --project", Arg.Any <FilePath>(), Arg.Any <string[]>());
 }
Esempio n. 2
0
 public void PassesPathAndArgs(
     string path,
     string args,
     ProjectRunProcessStartInfoProvider sut)
 {
     sut.GetStart(path, args);
     sut.CmdStartConstructor.Received(1)
     .Construct(
         Arg.Any <string>(),
         path,
         Arg.Is <string[]>(x => x.Contains(args)));
 }
Esempio n. 3
0
 public void BuildGivenToArgs(
     bool build,
     string path,
     string args,
     ProjectRunProcessStartInfoProvider sut)
 {
     sut.GetStart(path, args, build: build);
     sut.CmdStartConstructor.Received(1)
     .Construct(
         Arg.Any <string>(),
         Arg.Any <FilePath>(),
         Arg.Is <string[]>(x => x.Contains("--no-build") == !build));
 }
Esempio n. 4
0
 public void PassesExecutionParametersToArgs(
     string path,
     string executionArgs,
     string args,
     ProjectRunProcessStartInfoProvider sut)
 {
     sut.ExecutionParameters.Parameters.Returns(executionArgs);
     sut.GetStart(path, args);
     sut.CmdStartConstructor.Received(1)
     .Construct(
         Arg.Any <string>(),
         Arg.Any <FilePath>(),
         Arg.Is <string[]>(x => x.Contains(executionArgs)));
 }