1 write to RemainingArguments
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
42
RemainingArguments
= new List<string>();
37 references to RemainingArguments
Microsoft.AspNetCore.Shared.Tests (37)
CommandLineApplicationTests.cs (35)
95
var remaining = Assert.Single(testCommand.
RemainingArguments
);
279
var arg = Assert.Single(testCmd.
RemainingArguments
);
345
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
359
var arg = Assert.Single(app.
RemainingArguments
);
374
var arg = Assert.Single(app.
RemainingArguments
);
389
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
402
var arg = Assert.Single(app.
RemainingArguments
);
417
var arg = Assert.Single(app.
RemainingArguments
);
451
var arg = Assert.Single(testCmd.
RemainingArguments
);
465
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
478
var arg = Assert.Single(app.
RemainingArguments
);
493
var arg = Assert.Single(app.
RemainingArguments
);
508
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
521
var arg = Assert.Single(app.
RemainingArguments
);
536
var arg = Assert.Single(app.
RemainingArguments
);
551
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
565
Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.
RemainingArguments
.ToArray());
580
Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.
RemainingArguments
.ToArray());
597
app.
RemainingArguments
.ToArray());
613
app.
RemainingArguments
.ToArray());
628
Assert.Equal(new[] { unexpectedOption, unexpectedValue }, app.
RemainingArguments
.ToArray());
661
var arg = Assert.Single(testCmd.
RemainingArguments
);
694
var arg = Assert.Single(testCmd.
RemainingArguments
);
732
Assert.Empty(app.
RemainingArguments
);
733
Assert.Equal(new[] { unexpectedOption, "run" }, testCmd.
RemainingArguments
.ToArray());
734
Assert.Empty(subCmd.
RemainingArguments
);
753
Assert.Empty(app.
RemainingArguments
);
754
Assert.Empty(testCmd.
RemainingArguments
);
755
var arg = Assert.Single(subCmd.
RemainingArguments
);
771
Assert.Equal(arguments, app.
RemainingArguments
.ToArray());
786
var remaining = Assert.Single(app.
RemainingArguments
);
924
Assert.Equal(expectedRemaining, app.
RemainingArguments
.ToArray());
950
Assert.Equal(expectedRemaining, app.
RemainingArguments
.ToArray());
977
Assert.Equal(expectedRemaining, app.
RemainingArguments
.ToArray());
1004
Assert.Equal(expectedRemaining, app.
RemainingArguments
.ToArray());
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
590
command.
RemainingArguments
.Add(args[index]);
596
command.
RemainingArguments
.AddRange(new ArraySegment<string>(args, index, args.Length - index));