1 write to Home
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
28Home = Workspace.CreateDirectory("home");
44 references to Home
Aspire.Cli.Tests (44)
Agents\AgentConfigurationTestContext.cs (2)
36ExecutionContext = TestExecutionContextHelper.CreateExecutionContext(Project, homeDirectory: Home); 52public string CopilotDirectory => AgentPath.Expand(CopilotPaths.GetConfigDirectory(Home, Environment), ExecutionContext);
Agents\AgentConfigurationTests.cs (7)
527Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 638Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 667var custom = Path.Combine(_context.Home.FullName, "claude-work"); 677Assert.False(File.Exists(Path.Combine(_context.Home.FullName, ".claude.json"))); 691Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 706Assert.Equal([result.TargetPath], Directory.EnumerateFiles(_context.Home.FullName, "*", SearchOption.AllDirectories)); 754Assert.Empty(_context.Home.EnumerateFileSystemInfos());
Agents\AgentPathTests.cs (5)
25? _context.Home.FullName 26: Path.Combine(_context.Home.FullName, relative.Replace('/', Path.DirectorySeparatorChar)); 32Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 41var expected = Path.Combine(_context.Home.FullName, "custom-config"); 49Assert.Empty(_context.Home.EnumerateFileSystemInfos());
Agents\LocalAspireSkillsTests.cs (5)
73var user = Path.Combine(_context.Home.FullName, ".agents", "skills", "aspireify", "SKILL.md"); 86var custom = Path.Combine(_context.Home.FullName, "claude-work"); 90await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Home.FullName, ".claude", "skills", "aspire", "SKILL.md"), "old home"); 133Path.Combine(_context.Home.FullName, "shared-skills", "aspireify", "SKILL.md") 252Assert.Empty(_context.Home.EnumerateFileSystemInfos());
Agents\OpenCodeAgentClientTests.cs (11)
20var executionContext = TestExecutionContextHelper.CreateExecutionContext(workingDirectory, homeDirectory: _context.Home); 38Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 117Assert.Empty((scope is AgentConfigurationScope.Project ? _context.Home : _context.Project).EnumerateFileSystemInfos()); 184Assert.Empty((scope is AgentConfigurationScope.Project ? _context.Home : _context.Project).EnumerateFileSystemInfos()); 297Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 335Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 345: Path.Combine(_context.Home.FullName, "custom-opencode"); 359Directory.EnumerateFiles(_context.Home.FullName, "*", SearchOption.AllDirectories) 368var selected = Path.Combine(_context.Home.FullName, "selected", "custom.jsonc"); 369var customDirectory = Path.Combine(_context.Home.FullName, "custom-opencode"); 386Directory.EnumerateFiles(_context.Home.FullName, "*", SearchOption.AllDirectories).Order());
Commands\AgentInitClientSelectionTests.cs (1)
1322? Path.Combine(context.Home.FullName, ".agents", "skills", "aspire", "SKILL.md")
Commands\AgentInitCommandTests.cs (13)
133Assert.Empty(context.Home.EnumerateFileSystemInfos()); 165Assert.Empty(context.Home.EnumerateFileSystemInfos()); 203Assert.Empty(context.Home.EnumerateFileSystemInfos()); 236Assert.Empty(context.Home.EnumerateFileSystemInfos()); 584var skillsRoot = configurationScope is AgentConfigurationScope.Project ? context.Project : context.Home; 972Assert.Equal([global], Directory.GetFiles(context.Home.FullName, "*", SearchOption.AllDirectories)); 1131var root = scope == "project" ? context.Project : context.Home; 1132var otherRoot = scope == "project" ? context.Home : context.Project; 1174var scopeRoot = scope is AgentConfigurationScope.Project ? context.Project : context.Home; 1228Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1265Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1303Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1379Assert.Empty(context.Home.EnumerateFileSystemInfos());