Forge
csharpdeeb25a2
1using CascadeIDE.Contracts.Experimental;
2using CascadeIDE.Features.UiChrome;
3using Xunit;
4
5namespace CascadeIDE.Tests;
6
7public sealed class AttentionPanelCanonicalIdsTests
8{
9 [Fact]
10 public void AttentionPanelIds_strings_match_contracts()
11 {
12 Assert.Equal(AttentionPanelCanonicalIds.SolutionExplorer, AttentionPanelIds.SolutionExplorer);
13 Assert.Equal(AttentionPanelCanonicalIds.ChatPanel, AttentionPanelIds.ChatPanel);
14 Assert.Equal(AttentionPanelCanonicalIds.Git, AttentionPanelIds.Git);
15 Assert.Equal(AttentionPanelCanonicalIds.Terminal, AttentionPanelIds.Terminal);
16 Assert.Equal(AttentionPanelCanonicalIds.Editor, AttentionPanelIds.Editor);
17 Assert.Equal(AttentionPanelCanonicalIds.EditorHud, AttentionPanelIds.EditorHud);
18 Assert.Equal(6, AttentionPanelCanonicalIds.All.Length);
19 }
20
21 [Theory]
22 [InlineData("solution_explorer", true)]
23 [InlineData("editor_hud", true)]
24 [InlineData("unknown", false)]
25 [InlineData("", false)]
26 [InlineData(null, false)]
27 public void IsKnownPanelId(string? id, bool expected) =>
28 Assert.Equal(expected, AttentionPanelCanonicalIds.IsKnownPanelId(id));
29}
30
View only · write via MCP/CIDE