52 references to Commands
Aspire.Cli.Tests (52)
Commands\NewCommandLocalTemplateTests.ConfiguredGitSources.cs (3)
491Assert.Empty(git.Commands); 671git.Commands.Where(call => call.Arguments[0] == "ls-remote") 675git.Commands.Where(call => call.Arguments[0] == "fetch")
Commands\NewCommandLocalTemplateTests.cs (19)
1007Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1375Assert.Empty(gitCommands.Commands); 1462Assert.Empty(gitCommands.Commands); 1476Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1477Assert.All(gitCommands.Commands, command => Assert.Equal(GitCommandMode.Captured, command.Mode)); 1517Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1545Assert.Empty(gitCommands.Commands); 1615Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1660Assert.Equal(2, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1798Assert.Equal(5, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1799Assert.Equal(3, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1807Assert.Equal(6, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1808Assert.Equal(3, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1842Assert.Equal(2, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1847Assert.All(gitCommands.Commands.Where(command => command.Arguments[0] == "fetch"), 1886Assert.Equal("ls-remote", Assert.Single(gitCommands.Commands).Arguments[0]); 1908Assert.Empty(gitCommands.Commands); 1929Assert.Empty(gitCommands.Commands); 1980Assert.Empty(gitCommands.Commands);
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (7)
77git.Commands.Clear(); 131var resolution = Assert.Single(git.Commands, call => call.Arguments[0] == "ls-remote"); 135var fetch = Assert.Single(git.Commands, call => call.Arguments[0].StartsWith("--git-dir=", StringComparison.Ordinal) 152Assert.Empty(git.Commands); 219git.Commands.Clear(); 229Assert.Empty(git.Commands); 283Assert.Empty(git.Commands);
Configuration\ConfigSourceServiceGitTests.cs (4)
108Assert.Equal(3, commands.Commands.Count); 595commands.Commands.Select(command => command.Arguments[0].StartsWith("--git-dir=", StringComparison.Ordinal) 713commands.Commands.Where(command => command.Arguments[0] == "init") 718commands.Commands.Where(command => command.Arguments[0] == "ls-remote").Select(command => command.Mode));
Git\GitClientTests.cs (6)
34var command = Assert.Single(commands.Commands); 74Assert.Equal(interactionMode, Assert.Single(commands.Commands).Mode); 105Assert.Empty(commands.Commands); 121Assert.Collection(commands.Commands, 158var command = Assert.Single(commands.Commands); 191Assert.Collection(commands.Commands,
Templating\TemplateEngineFactoryGitTests.cs (11)
73var init = commands.Commands.First(); 75Assert.Collection(commands.Commands, 88Assert.All(commands.Commands, command => Assert.Equal(GitCommandMode.Captured, command.Mode)); 102Assert.Equal(4, commands.Commands.Count); 114commands.RunCallback = (_, _) => commands.Commands.Count == failingCommand 124Assert.Equal(failingCommand, commands.Commands.Count); 137Assert.Empty(commands.Commands); 160Assert.Single(commands.Commands); 187Assert.Equal(3, commands.Commands.Count); 216Assert.Single(commands.Commands); 245Assert.Equal(5, commands.Commands.Count);
TestServices\TestGitCommandRunner.cs (2)
36var fetch = commands.Commands.Last(call => call.Arguments[0] == "fetch" 58Commands.Enqueue(command);