@@ -26,10 +26,10 @@ public sealed class AgentCommandTests(ITestOutputHelper output)
2626 public async Task AgentCommands_AllHelpOutputs_AreCorrect ( )
2727 {
2828 var repoRoot = CliE2ETestHelpers . GetRepoRoot ( ) ;
29- var installMode = CliE2ETestHelpers . DetectDockerInstallMode ( repoRoot ) ;
29+ var strategy = CliInstallStrategy . Detect ( ) ;
3030 var workspace = TemporaryWorkspace . Create ( output ) ;
3131
32- using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , installMode , output , workspace : workspace ) ;
32+ using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , strategy , output , workspace : workspace ) ;
3333
3434 var pendingRun = terminal . RunAsync ( TestContext . Current . CancellationToken ) ;
3535
@@ -38,7 +38,7 @@ public async Task AgentCommands_AllHelpOutputs_AreCorrect()
3838
3939 await auto . PrepareDockerEnvironmentAsync ( counter , workspace ) ;
4040
41- await auto . InstallAspireCliInDockerAsync ( installMode , counter ) ;
41+ await auto . InstallAspireCliAsync ( strategy , counter ) ;
4242
4343 // Test 1: aspire agent --help
4444 await auto . TypeAsync ( "aspire agent --help" ) ;
@@ -88,10 +88,10 @@ await auto.WaitUntilAsync(
8888 public async Task AgentInitCommand_MigratesDeprecatedConfig ( )
8989 {
9090 var repoRoot = CliE2ETestHelpers . GetRepoRoot ( ) ;
91- var installMode = CliE2ETestHelpers . DetectDockerInstallMode ( repoRoot ) ;
91+ var strategy = CliInstallStrategy . Detect ( ) ;
9292 var workspace = TemporaryWorkspace . Create ( output ) ;
9393
94- using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , installMode , output , workspace : workspace ) ;
94+ using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , strategy , output , workspace : workspace ) ;
9595
9696 var pendingRun = terminal . RunAsync ( TestContext . Current . CancellationToken ) ;
9797
@@ -105,7 +105,7 @@ public async Task AgentInitCommand_MigratesDeprecatedConfig()
105105
106106 await auto . PrepareDockerEnvironmentAsync ( counter , workspace ) ;
107107
108- await auto . InstallAspireCliInDockerAsync ( installMode , counter ) ;
108+ await auto . InstallAspireCliAsync ( strategy , counter ) ;
109109
110110 // Step 1: Create deprecated config file using Claude Code format (.mcp.json)
111111 // This simulates a config that was created by an older version of the CLI
@@ -163,10 +163,10 @@ await auto.WaitUntilAsync(
163163 public async Task DoctorCommand_DetectsDeprecatedAgentConfig ( )
164164 {
165165 var repoRoot = CliE2ETestHelpers . GetRepoRoot ( ) ;
166- var installMode = CliE2ETestHelpers . DetectDockerInstallMode ( repoRoot ) ;
166+ var strategy = CliInstallStrategy . Detect ( ) ;
167167 var workspace = TemporaryWorkspace . Create ( output ) ;
168168
169- using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , installMode , output , workspace : workspace ) ;
169+ using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , strategy , output , workspace : workspace ) ;
170170
171171 var pendingRun = terminal . RunAsync ( TestContext . Current . CancellationToken ) ;
172172
@@ -177,7 +177,7 @@ public async Task DoctorCommand_DetectsDeprecatedAgentConfig()
177177
178178 await auto . PrepareDockerEnvironmentAsync ( counter , workspace ) ;
179179
180- await auto . InstallAspireCliInDockerAsync ( installMode , counter ) ;
180+ await auto . InstallAspireCliAsync ( strategy , counter ) ;
181181
182182 // Create deprecated config file
183183 File . WriteAllText ( configPath , """{"mcpServers":{"aspire":{"command":"aspire","args":["mcp","start"]}}}""" ) ;
@@ -203,10 +203,10 @@ await auto.WaitUntilAsync(
203203 public async Task AgentInitCommand_DefaultSelection_InstallsSkillOnly ( )
204204 {
205205 var repoRoot = CliE2ETestHelpers . GetRepoRoot ( ) ;
206- var installMode = CliE2ETestHelpers . DetectDockerInstallMode ( repoRoot ) ;
206+ var strategy = CliInstallStrategy . Detect ( ) ;
207207 var workspace = TemporaryWorkspace . Create ( output ) ;
208208
209- using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , installMode , output , workspace : workspace ) ;
209+ using var terminal = CliE2ETestHelpers . CreateDockerTestTerminal ( repoRoot , strategy , output , workspace : workspace ) ;
210210
211211 var pendingRun = terminal . RunAsync ( TestContext . Current . CancellationToken ) ;
212212
@@ -218,7 +218,7 @@ public async Task AgentInitCommand_DefaultSelection_InstallsSkillOnly()
218218
219219 await auto . PrepareDockerEnvironmentAsync ( counter , workspace ) ;
220220
221- await auto . InstallAspireCliInDockerAsync ( installMode , counter ) ;
221+ await auto . InstallAspireCliAsync ( strategy , counter ) ;
222222
223223 // Create .vscode folder so the scanner detects VS Code environment
224224 Directory . CreateDirectory ( vscodePath ) ;
0 commit comments