39 references to Commands
Aspire.Cli.Tests (39)
Commands\NewCommandLocalTemplateTests.cs (16)
1003Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1371Assert.Empty(gitCommands.Commands); 1465Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1493Assert.Empty(gitCommands.Commands); 1563Assert.Single(gitCommands.Commands, command => command.Arguments[0] == "fetch"); 1608Assert.Equal(2, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1743Assert.Equal(5, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1744Assert.Equal(3, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1752Assert.Equal(6, gitCommands.Commands.Count(command => command.Arguments[0] == "ls-remote")); 1753Assert.Equal(3, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1787Assert.Equal(2, gitCommands.Commands.Count(command => command.Arguments[0] == "fetch")); 1792Assert.All(gitCommands.Commands.Where(command => command.Arguments[0] == "fetch"), 1831Assert.Equal("ls-remote", Assert.Single(gitCommands.Commands).Arguments[0]); 1853Assert.Empty(gitCommands.Commands); 1874Assert.Empty(gitCommands.Commands); 1925Assert.Empty(gitCommands.Commands);
Configuration\ConfigSourceServiceGitTests.cs (4)
104Assert.Equal(3, commands.Commands.Count); 612commands.Commands.Select(command => command.Arguments[0].StartsWith("--git-dir=", StringComparison.Ordinal) 717commands.Commands.Where(command => command.Arguments[0] == "init").Select(command => command.Arguments[2])); 721commands.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)
33var init = commands.Commands.First(); 35Assert.Collection(commands.Commands, 48Assert.All(commands.Commands, command => Assert.Equal(GitCommandMode.Captured, command.Mode)); 62Assert.Equal(4, commands.Commands.Count); 74commands.RunCallback = (_, _) => commands.Commands.Count == failingCommand 84Assert.Equal(failingCommand, commands.Commands.Count); 97Assert.Empty(commands.Commands); 120Assert.Single(commands.Commands); 145Assert.Equal(3, commands.Commands.Count); 170Assert.Single(commands.Commands); 197Assert.Equal(5, commands.Commands.Count);
TestServices\TestGitCommandRunner.cs (2)
33return commands.Commands.Last(call => call.Arguments[0] == "fetch" 46Commands.Enqueue(command);