45 instantiations of AgentConfigurationTestContext
Aspire.Cli.Tests (45)
Agents\AgentConfigurationTests.cs (1)
18private readonly AgentConfigurationTestContext _context = new(output);
Agents\AgentPathTests.cs (1)
11private readonly AgentConfigurationTestContext _context = new(output);
Agents\LocalAspireSkillsTests.cs (1)
11private readonly AgentConfigurationTestContext _context = new(output);
Agents\OpenCodeAgentClientTests.cs (1)
14private readonly AgentConfigurationTestContext _context = new(output);
Agents\PlaywrightCliInstallerTests.cs (1)
17private readonly AgentConfigurationTestContext _context = new(output);
Agents\SkillSourceTests.cs (10)
197using var context = new AgentConfigurationTestContext(output); 233using var context = new AgentConfigurationTestContext(output); 253using var context = new AgentConfigurationTestContext(output); 274using var context = new AgentConfigurationTestContext(output); 291using var context = new AgentConfigurationTestContext(output); 319using var context = new AgentConfigurationTestContext(output); 341using var context = new AgentConfigurationTestContext(output); 365using var context = new AgentConfigurationTestContext(output); 388using var context = new AgentConfigurationTestContext(output); 412using var context = new AgentConfigurationTestContext(output);
Commands\AgentInitClientSelectionTests.cs (1)
1599using var context = new AgentConfigurationTestContext(outputHelper);
Commands\AgentInitCommandTests.cs (25)
66using var context = new AgentConfigurationTestContext(outputHelper); 114using var context = new AgentConfigurationTestContext(outputHelper); 143using var context = new AgentConfigurationTestContext(outputHelper); 163using var context = new AgentConfigurationTestContext(outputHelper); 247using var context = new AgentConfigurationTestContext(outputHelper); 326using var context = new AgentConfigurationTestContext(outputHelper); 436using var context = new AgentConfigurationTestContext(outputHelper); 503using var context = new AgentConfigurationTestContext(outputHelper); 536using var context = new AgentConfigurationTestContext(outputHelper); 816using var context = new AgentConfigurationTestContext(outputHelper); 861using var context = new AgentConfigurationTestContext(outputHelper); 900using var context = new AgentConfigurationTestContext(outputHelper); 923using var context = new AgentConfigurationTestContext(outputHelper); 954using var context = new AgentConfigurationTestContext(outputHelper); 991using var context = new AgentConfigurationTestContext(outputHelper); 1028using var context = new AgentConfigurationTestContext(outputHelper); 1074using var context = new AgentConfigurationTestContext(outputHelper); 1134using var context = new AgentConfigurationTestContext(outputHelper); 1178using var context = new AgentConfigurationTestContext(outputHelper); 1218using var context = new AgentConfigurationTestContext(outputHelper); 1245using var context = new AgentConfigurationTestContext(outputHelper); 1265using var context = new AgentConfigurationTestContext(outputHelper); 1307using var context = new AgentConfigurationTestContext(outputHelper); 1364using var context = new AgentConfigurationTestContext(outputHelper); 1395using var context = new AgentConfigurationTestContext(outputHelper);
Commands\ConfigSourceCommandTests.cs (1)
234using var context = new AgentConfigurationTestContext(outputHelper);
Commands\DoctorCommandTests.cs (2)
41using var context = new AgentConfigurationTestContext(outputHelper); 76using var context = new AgentConfigurationTestContext(outputHelper);
Utils\AspireSkillsCheckTests.cs (1)
14private readonly AgentConfigurationTestContext _context = new(outputHelper);
147 references to AgentConfigurationTestContext
Aspire.Cli.Tests (147)
Agents\AgentConfigurationTests.cs (14)
18private readonly AgentConfigurationTestContext _context = new(output); 199await AgentConfigurationTestContext.WriteAsync(path, "{}"); 206await AgentConfigurationTestContext.WriteAsync(path, changed); 221await AgentConfigurationTestContext.WriteAsync(inherited, "{}"); 228await AgentConfigurationTestContext.WriteAsync(inherited, changed); 296await AgentConfigurationTestContext.WriteAsync(path, "{}"); 595await AgentConfigurationTestContext.WriteAsync(path, existing).DefaultTimeout(); 615await AgentConfigurationTestContext.WriteAsync(managed, policy); 620await AgentConfigurationTestContext.WriteAsync(target, existing); 651await AgentConfigurationTestContext.WriteAsync(user, inherited); 653await AgentConfigurationTestContext.WriteAsync(target, $$"""{"extraKnownMarketplaces":{"aspire-skills":{"source": {{source}} } } }"""); 671await AgentConfigurationTestContext.WriteAsync(state, existing).DefaultTimeout(); 720await AgentConfigurationTestContext.WriteAsync(path, original); 721await AgentConfigurationTestContext.WriteAsync(
Agents\AgentPathTests.cs (1)
11private readonly AgentConfigurationTestContext _context = new(output);
Agents\LocalAspireSkillsTests.cs (17)
11private readonly AgentConfigurationTestContext _context = new(output); 29await AgentConfigurationTestContext.WriteAsync(Path.Combine(skills, name, "references", "notes.md"), "local skill"); 31await AgentConfigurationTestContext.WriteAsync(Path.Combine(skills, "aspire-custom", "SKILL.md"), "unrelated"); 32await AgentConfigurationTestContext.WriteAsync(Path.Combine(skills, "playwright-cli", "SKILL.md"), "unrelated"); 56await AgentConfigurationTestContext.WriteAsync(Path.Combine(path, "SKILL.md"), "active local skill"); 58await AgentConfigurationTestContext.WriteAsync( 60await AgentConfigurationTestContext.WriteAsync( 75await AgentConfigurationTestContext.WriteAsync(Path.Combine(project, "SKILL.md"), "project"); 76await AgentConfigurationTestContext.WriteAsync(Path.Combine(user, "SKILL.md"), "user"); 77await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Home.FullName, ".claude", "skills", "aspire", "SKILL.md"), "claude"); 78await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.CopilotDirectory, "skills", "aspire", "SKILL.md"), "copilot"); 92await AgentConfigurationTestContext.WriteAsync(Path.Combine(skill, "SKILL.md"), "shared"); 102await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.CopilotDirectory, "installed-plugins", "aspire", "skills", "aspire", "SKILL.md"), "installed"); 103await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, "unrelated", ".agents", "skills", "aspire", "SKILL.md"), "unrelated"); 113await AgentConfigurationTestContext.WriteAsync(Path.Combine(selected, "SKILL.md"), "selected"); 114await AgentConfigurationTestContext.WriteAsync(Path.Combine(outside.FullName, ".agents", "skills", "aspire", "SKILL.md"), "outside"); 115await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Workspace.Path, ".agents", "skills", "aspire", "SKILL.md"), "ancestor");
Agents\OpenCodeAgentClientTests.cs (18)
14private readonly AgentConfigurationTestContext _context = new(output); 24await AgentConfigurationTestContext.WriteAsync(nestedConfig, existing); 53await AgentConfigurationTestContext.WriteAsync(lowerPath, lower); 54await AgentConfigurationTestContext.WriteAsync(ownerPath, nativeHigher ? native : legacy); 55await AgentConfigurationTestContext.WriteAsync(higherPath, higher); 108await AgentConfigurationTestContext.WriteAsync(json, original); 109await AgentConfigurationTestContext.WriteAsync(jsonc, unrelated); 192await AgentConfigurationTestContext.WriteAsync(root, inherited); 194await AgentConfigurationTestContext.WriteAsync(path, """{"model":"preserved","skills":["./team-skills"],}"""); 220await AgentConfigurationTestContext.WriteAsync(path, original.ToJsonString()); 250await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.OpenCodeDirectory, "opencode.json"), inherited); 272await AgentConfigurationTestContext.WriteAsync(global, inherited); 292await AgentConfigurationTestContext.WriteAsync(path, existing); 310await AgentConfigurationTestContext.WriteAsync(json, pinned); 311await AgentConfigurationTestContext.WriteAsync(jsonc, """{"model":"preserved"}"""); 349await AgentConfigurationTestContext.WriteAsync(inherited, pinned); 375await AgentConfigurationTestContext.WriteAsync(other, original); 376await AgentConfigurationTestContext.WriteAsync(normal, original);
Agents\PlaywrightCliInstallerTests.cs (1)
17private readonly AgentConfigurationTestContext _context = new(output);
Agents\SkillSourceTests.cs (19)
197using var context = new AgentConfigurationTestContext(output); 210await AgentConfigurationTestContext.WriteAsync( 233using var context = new AgentConfigurationTestContext(output); 237await AgentConfigurationTestContext.WriteAsync(path, """ 253using var context = new AgentConfigurationTestContext(output); 260await AgentConfigurationTestContext.WriteAsync(path, original); 274using var context = new AgentConfigurationTestContext(output); 279await AgentConfigurationTestContext.WriteAsync( 291using var context = new AgentConfigurationTestContext(output); 299await AgentConfigurationTestContext.WriteAsync(path, """ 319using var context = new AgentConfigurationTestContext(output); 321await AgentConfigurationTestContext.WriteAsync(Path.Combine(app.FullName, "aspire.config.json"), """ 341using var context = new AgentConfigurationTestContext(output); 354await AgentConfigurationTestContext.WriteAsync(path, original); 365using var context = new AgentConfigurationTestContext(output); 388using var context = new AgentConfigurationTestContext(output); 401await AgentConfigurationTestContext.WriteAsync(path, original); 412using var context = new AgentConfigurationTestContext(output); 423await AgentConfigurationTestContext.WriteAsync(
Commands\AgentInitClientSelectionTests.cs (5)
418await AgentConfigurationTestContext.WriteAsync(blockedSkillPath, "blocked destination"); 456await AgentConfigurationTestContext.WriteAsync(skillPath, skill); 1599using var context = new AgentConfigurationTestContext(outputHelper); 1605await AgentConfigurationTestContext.WriteAsync(path, content); 1610await AgentConfigurationTestContext.WriteAsync(projectSkillPath, content);
Commands\AgentInitCommandTests.cs (62)
66using var context = new AgentConfigurationTestContext(outputHelper); 71await AgentConfigurationTestContext.WriteAsync(Path.Combine(selected.FullName, AspireConfigFile.FileName), """ 114using var context = new AgentConfigurationTestContext(outputHelper); 143using var context = new AgentConfigurationTestContext(outputHelper); 163using var context = new AgentConfigurationTestContext(outputHelper); 165await AgentConfigurationTestContext.WriteAsync(Path.Combine(appHostDirectory.FullName, "AppHost.csproj"), """ 172await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, "web", "Web.csproj"), """ 175await AgentConfigurationTestContext.WriteAsync(Path.Combine(appHostDirectory.FullName, AspireConfigFile.FileName), """ 178await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, AspireConfigFile.FileName), """ 247using var context = new AgentConfigurationTestContext(outputHelper); 248await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, AspireConfigFile.FileName), """ 326using var context = new AgentConfigurationTestContext(outputHelper); 436using var context = new AgentConfigurationTestContext(outputHelper); 503using var context = new AgentConfigurationTestContext(outputHelper); 505await AgentConfigurationTestContext.WriteAsync(Path.Combine(app.FullName, "aspire.config.json"), """ 536using var context = new AgentConfigurationTestContext(outputHelper); 537await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, "aspire.config.json"), """ 540await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, ".aspire", "settings.global.json"), """ 552await AgentConfigurationTestContext.WriteAsync(Path.Combine(app.FullName, "aspire.config.json"), """ 816using var context = new AgentConfigurationTestContext(outputHelper); 861using var context = new AgentConfigurationTestContext(outputHelper); 900using var context = new AgentConfigurationTestContext(outputHelper); 901await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, "aspire.config.json"), """ 923using var context = new AgentConfigurationTestContext(outputHelper); 933await AgentConfigurationTestContext.WriteAsync( 954using var context = new AgentConfigurationTestContext(outputHelper); 959await AgentConfigurationTestContext.WriteAsync( 991using var context = new AgentConfigurationTestContext(outputHelper); 1028using var context = new AgentConfigurationTestContext(outputHelper); 1033await AgentConfigurationTestContext.WriteAsync(configPath, array 1036await AgentConfigurationTestContext.WriteAsync(Path.Combine(skillDirectory, "SKILL.md"), "My customized Aspire instructions."); 1037await AgentConfigurationTestContext.WriteAsync(Path.Combine(skillDirectory, "references", "deploy.md"), "Supporting file."); 1038await AgentConfigurationTestContext.WriteAsync(configuredSkillPath, configuredSkill); 1074using var context = new AgentConfigurationTestContext(outputHelper); 1078await AgentConfigurationTestContext.WriteAsync(skillPath, skill); 1083await AgentConfigurationTestContext.WriteAsync( 1088await AgentConfigurationTestContext.WriteAsync(configPath, """{"skillSources":{"default":{"enabled":false}}}"""); 1091await AgentConfigurationTestContext.WriteAsync(configPath, 1095await AgentConfigurationTestContext.WriteAsync(configPath, 1134using var context = new AgentConfigurationTestContext(outputHelper); 1136await AgentConfigurationTestContext.WriteAsync(Path.Combine(skillDirectory, "SKILL.md"), "My customized Aspire instructions."); 1137await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, "aspire.config.json"), 1147await AgentConfigurationTestContext.WriteAsync(settingsPath, settings); 1150await AgentConfigurationTestContext.WriteAsync( 1178using var context = new AgentConfigurationTestContext(outputHelper); 1180await AgentConfigurationTestContext.WriteAsync(Path.Combine(skillDirectory, "SKILL.md"), "My customized Aspire instructions."); 1218using var context = new AgentConfigurationTestContext(outputHelper); 1223await AgentConfigurationTestContext.WriteAsync(skillPath, skill); 1224await AgentConfigurationTestContext.WriteAsync(Path.Combine(context.Project.FullName, "aspire.config.json"), 1226await AgentConfigurationTestContext.WriteAsync(client.GetIntegrationConfigPath(scope, context.Project), 1228await AgentConfigurationTestContext.WriteAsync( 1245using var context = new AgentConfigurationTestContext(outputHelper); 1249await AgentConfigurationTestContext.WriteAsync( 1265using var context = new AgentConfigurationTestContext(outputHelper); 1269await AgentConfigurationTestContext.WriteAsync(sharedSkillPath, skill); 1307using var context = new AgentConfigurationTestContext(outputHelper); 1313await AgentConfigurationTestContext.WriteAsync(failedSkillPath, skill); 1314await AgentConfigurationTestContext.WriteAsync(Path.Combine(removableDirectory, "SKILL.md"), skill); 1364using var context = new AgentConfigurationTestContext(outputHelper); 1368await AgentConfigurationTestContext.WriteAsync(path, original); 1395using var context = new AgentConfigurationTestContext(outputHelper); 1398await AgentConfigurationTestContext.WriteAsync(integrationPath, malformed);
Commands\ConfigSourceCommandTests.cs (1)
234using var context = new AgentConfigurationTestContext(outputHelper);
Commands\DoctorCommandTests.cs (4)
41using var context = new AgentConfigurationTestContext(outputHelper); 47await AgentConfigurationTestContext.WriteAsync(skill, "static guidance"); 76using var context = new AgentConfigurationTestContext(outputHelper); 79await AgentConfigurationTestContext.WriteAsync(
Commands\InitCommandTests.cs (1)
1030await AgentConfigurationTestContext.WriteAsync(nativePath, nativeConfiguration);
Utils\AspireSkillsCheckTests.cs (4)
14private readonly AgentConfigurationTestContext _context = new(outputHelper); 27await AgentConfigurationTestContext.WriteAsync(project, "project guidance"); 28await AgentConfigurationTestContext.WriteAsync(user, "user guidance"); 48await AgentConfigurationTestContext.WriteAsync(