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