Esempio n. 1
0
 public void MsbuildInvocationIsCorrect(string[] args, string[] expectedArgs)
 {
     CommandDirectoryContext.PerformActionWithBasePath(WorkingDirectory, () =>
     {
         var command = RunCommand.FromArgs(args);
         command.RestoreArgs
         .Should()
         .BeEquivalentTo(expectedArgs);
     });
 }
Esempio n. 2
0
        public void RunParserCanGetArgumentFromDoubleDash()
        {
            var runCommand = RunCommand.FromArgs(new[] { "--", "foo" });

            runCommand.Args.Single().Should().Be("foo");
        }