Agents\AgentPathTests.cs (21)
23_context.SetVariable("CLAUDE_CONFIG_DIR", value);
25? _context.Home.FullName
26: Path.Combine(_context.Home.FullName, relative.Replace('/', Path.DirectorySeparatorChar));
28Assert.Equal(expected, _context.ClaudeDirectory);
29Assert.Equal(Path.Combine(expected, ".claude.json"), ClaudeCodePaths.GetGlobalMcpConfigPath(_context.ExecutionContext, _context.Environment));
30Assert.Equal(expected, AgentPath.Expand(value, _context.ExecutionContext));
31Assert.Empty(_context.Project.EnumerateFileSystemInfos());
32Assert.Empty(_context.Home.EnumerateFileSystemInfos());
40_context.SetVariable("COPILOT_HOME", value);
41var expected = Path.Combine(_context.Home.FullName, "custom-config");
43Assert.Equal(expected, _context.CopilotDirectory);
45_context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project));
47_context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project));
48Assert.Empty(_context.Project.EnumerateFileSystemInfos());
49Assert.Empty(_context.Home.EnumerateFileSystemInfos());
55Assert.Equal(Path.Combine(_context.Project.FullName, "~other-user"), AgentPath.Expand("~other-user", _context.ExecutionContext));
58public void Dispose() => _context.Dispose();