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