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