19 instantiations of AgentConfigurationTestContext
Aspire.Cli.Tests (19)
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);
Commands\AgentInitClientSelectionTests.cs (1)
1319using var context = new AgentConfigurationTestContext(outputHelper);
Commands\AgentInitCommandTests.cs (13)
99using var context = new AgentConfigurationTestContext(outputHelper); 143using var context = new AgentConfigurationTestContext(outputHelper); 184using var context = new AgentConfigurationTestContext(outputHelper); 209using var context = new AgentConfigurationTestContext(outputHelper); 560using var context = new AgentConfigurationTestContext(outputHelper); 938using var context = new AgentConfigurationTestContext(outputHelper); 1111using var context = new AgentConfigurationTestContext(outputHelper); 1162using var context = new AgentConfigurationTestContext(outputHelper); 1199using var context = new AgentConfigurationTestContext(outputHelper); 1236using var context = new AgentConfigurationTestContext(outputHelper); 1273using var context = new AgentConfigurationTestContext(outputHelper); 1311using var context = new AgentConfigurationTestContext(outputHelper); 1343using var context = new AgentConfigurationTestContext(outputHelper);
82 references to AgentConfigurationTestContext
Aspire.Cli.Tests (82)
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(); 717await AgentConfigurationTestContext.WriteAsync(path, original); 718await AgentConfigurationTestContext.WriteAsync(
Agents\AgentPathTests.cs (1)
11private readonly AgentConfigurationTestContext _context = new(output);
Agents\LocalAspireSkillsTests.cs (24)
11private readonly AgentConfigurationTestContext _context = new(output); 29await AgentConfigurationTestContext.WriteAsync(path, "local skill"); 51await AgentConfigurationTestContext.WriteAsync(path, content); 53await AgentConfigurationTestContext.WriteAsync(empty, string.Empty); 55await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, directory, "skills", "aspire-custom", "SKILL.md"), "unrelated"); 56await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, directory, "skills", "playwright-cli", "SKILL.md"), "unrelated"); 74await AgentConfigurationTestContext.WriteAsync(project, "project"); 75await AgentConfigurationTestContext.WriteAsync(user, "user"); 89await AgentConfigurationTestContext.WriteAsync(selected, "customized"); 90await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Home.FullName, ".claude", "skills", "aspire", "SKILL.md"), "old home"); 91await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, ".github", "skills", "aspire", "SKILL.md"), "other agent"); 111await AgentConfigurationTestContext.WriteAsync(path, "local"); 138await AgentConfigurationTestContext.WriteAsync(configPath, config); 141await AgentConfigurationTestContext.WriteAsync(path, "local"); 162await AgentConfigurationTestContext.WriteAsync(path, config); 175await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.CopilotDirectory, "installed-plugins", "aspire", "skills", "aspire", "SKILL.md"), "installed"); 176await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, "unrelated", ".agents", "skills", "aspire", "SKILL.md"), "unrelated"); 199await AgentConfigurationTestContext.WriteAsync(path, "active local skill"); 201await AgentConfigurationTestContext.WriteAsync( 203await AgentConfigurationTestContext.WriteAsync( 220await AgentConfigurationTestContext.WriteAsync(selected, "selected"); 221await AgentConfigurationTestContext.WriteAsync(Path.Combine(outside.FullName, ".agents", "skills", "aspire", "SKILL.md"), "outside"); 222await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Workspace.Path, ".agents", "skills", "aspire", "SKILL.md"), "ancestor"); 236await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Project.FullName, ".agents", "skills", "aspireify", "SKILL.md"), "readable");
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);
Commands\AgentInitClientSelectionTests.cs (3)
1319using var context = new AgentConfigurationTestContext(outputHelper); 1336await AgentConfigurationTestContext.WriteAsync(path, content); 1342await AgentConfigurationTestContext.WriteAsync(projectSkillPath, content);
Commands\AgentInitCommandTests.cs (21)
99using var context = new AgentConfigurationTestContext(outputHelper); 143using var context = new AgentConfigurationTestContext(outputHelper); 184using var context = new AgentConfigurationTestContext(outputHelper); 209using var context = new AgentConfigurationTestContext(outputHelper); 560using var context = new AgentConfigurationTestContext(outputHelper); 938using var context = new AgentConfigurationTestContext(outputHelper); 943await AgentConfigurationTestContext.WriteAsync(global, enabled); 953await AgentConfigurationTestContext.WriteAsync(project, enabled); 955await AgentConfigurationTestContext.WriteAsync(settings, disabled); 1111using var context = new AgentConfigurationTestContext(outputHelper); 1162using var context = new AgentConfigurationTestContext(outputHelper); 1199using var context = new AgentConfigurationTestContext(outputHelper); 1204await AgentConfigurationTestContext.WriteAsync( 1236using var context = new AgentConfigurationTestContext(outputHelper); 1273using var context = new AgentConfigurationTestContext(outputHelper); 1276await AgentConfigurationTestContext.WriteAsync(configPath, array 1280await AgentConfigurationTestContext.WriteAsync(skillPath, skill); 1311using var context = new AgentConfigurationTestContext(outputHelper); 1315await AgentConfigurationTestContext.WriteAsync(path, original); 1343using var context = new AgentConfigurationTestContext(outputHelper); 1346await AgentConfigurationTestContext.WriteAsync(integrationPath, malformed);