1 write to Home
Aspire.Cli.Tests (1)
Agents\AgentConfigurationTestContext.cs (1)
31Home = Workspace.CreateDirectory("home");
53 references to Home
Aspire.Cli.Tests (53)
Agents\AgentConfigurationTestContext.cs (2)
39ExecutionContext = TestExecutionContextHelper.CreateExecutionContext(Project, homeDirectory: Home); 57public 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"))); 693Assert.Empty(_context.Home.EnumerateFileSystemInfos()); 709Assert.Equal([result.TargetPath], Directory.EnumerateFiles(_context.Home.FullName, "*", SearchOption.AllDirectories)); 758Assert.Empty(_context.Home.EnumerateFileSystemInfos());
Agents\AgentPathTests.cs (7)
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()); 73var project = _context.Home.CreateSubdirectory("my-app"); 82var homePath = Path.Combine(_context.Home.FullName, "config.json");
Agents\LocalAspireSkillsTests.cs (7)
74var user = Path.Combine(_context.Home.FullName, ".agents", "skills", "aspireify"); 77await AgentConfigurationTestContext.WriteAsync(Path.Combine(_context.Home.FullName, ".claude", "skills", "aspire", "SKILL.md"), "claude"); 91var skill = Path.Combine(_context.Home.FullName, ".agents", "skills", "aspire"); 94var result = Find(_context.Home, _context.Home); 126LocalAspireSkills.Find(_context.Project, _context.Project, _context.Home, new CancellationToken(canceled: true))); 130=> LocalAspireSkills.Find(working, workspaceRoot, _context.Home, TestContext.Current.CancellationToken)
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());
Agents\SkillSourceTests.cs (1)
325var source = Assert.Single(SkillSource.Resolve(app, new FileInfo(Path.Combine(context.Home.FullName, "aspire.config.json"))));
Commands\AgentInitClientSelectionTests.cs (1)
1603: Path.Combine(context.Home.FullName, ".agents", "skills", "aspire", "SKILL.md");
Commands\AgentInitCommandTests.cs (11)
353Assert.Empty(context.Home.EnumerateFileSystemInfos()); 458var skillsRoot = configurationScope is AgentConfigurationScope.Project ? context.Project : context.Home; 835var root = scope == "project" ? context.Project : context.Home; 836var otherRoot = scope == "project" ? context.Home : context.Project; 873var scopeRoot = scope is AgentConfigurationScope.Project ? context.Project : context.Home; 983Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1020Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1062Assert.Empty(context.Home.EnumerateFileSystemInfos()); 1075var skillPath = Path.Combine(reason == "project-scope" ? context.Home.FullName : context.Project.FullName, 1355Assert.Equal([failedDirectory], LocalAspireSkills.Find(context.Project, context.Project, context.Home, TestContext.Current.CancellationToken) 1432Assert.Empty(context.Home.EnumerateFileSystemInfos());
Commands\DoctorCommandTests.cs (2)
42var skills = new[] { context.Project, context.Home } 77foreach (var directory in new[] { context.Project, context.Home })
Utils\AspireSkillsCheckTests.cs (4)
26var user = Path.Combine(_context.Home.FullName, ".agents", "skills", "aspire", "SKILL.md"); 49Path.Combine(_context.Home.FullName, ".agents", "skills", "aspire", "SKILL.md"), "shared guidance"); 51TestExecutionContextHelper.CreateExecutionContext(_context.Home, homeDirectory: _context.Home));