22 references to Argument
Microsoft.AspNetCore.Shared.Tests (22)
CommandLineApplicationTests.cs (22)
44first = c.Argument("first", "First argument"); 45second = c.Argument("second", "Second argument"); 65first = c.Argument("first", "First argument"); 66second = c.Argument("second", "Second argument"); 85first = c.Argument("first", "First argument"); 86second = c.Argument("second", "Second argument"); 106c.Argument("first", "First argument"); 107c.Argument("second", "Second argument"); 125argument = c.Argument("arg", "Argument that allows multiple values", multipleValues: true); 145first = c.Argument("first", "First argument"); 146second = c.Argument("second", "Second argument"); 147third = c.Argument("third", "Third argument that allows multiple values", multipleValues: true); 162app.Argument("first", "First argument", multipleValues: true); 163var ex = Assert.Throws<InvalidOperationException>(() => app.Argument("second", "Second argument")); 287var argument = app.Argument("first", "first argument"); 300var argument = app.Argument("first", "first argument"); 313var argument = app.Argument("first", "first argument"); 326var argument = app.Argument("first", "first argument"); 1028var a = app.Argument("name", "Pseudonym, of course"); 1191first = c.Argument("first", "First argument"); 1192second = c.Argument("second", "Second argument"); 1215first = c.Argument("first", "First argument");