| 1 | using WebcamCaptureMcp; |
| 2 | |
| 3 | namespace WebcamCaptureMcp.Tests; |
| 4 | |
| 5 | public sealed class McpToolsDocTests |
| 6 | { |
| 7 | [Fact] |
| 8 | public void Mcp_tools_md_matches_ToolCatalog_headings() |
| 9 | { |
| 10 | var path = Path.Combine(AppContext.BaseDirectory, "docs", "MCP-TOOLS.md"); |
| 11 | Assert.True(File.Exists(path), $"Missing copied doc: {path}"); |
| 12 | |
| 13 | var text = File.ReadAllText(path); |
| 14 | Assert.Contains("<!-- GENERATED:ToolCatalog START -->", text); |
| 15 | Assert.Contains("<!-- GENERATED:ToolCatalog END -->", text); |
| 16 | |
| 17 | foreach (var tool in ToolCatalog.Build()) |
| 18 | { |
| 19 | Assert.Contains($"### `{tool.Name}`", text); |
| 20 | Assert.False(string.IsNullOrEmpty(tool.Description)); |
| 21 | Assert.Contains(tool.Description!, text); |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
View only · write via MCP/CIDE