| 1 | using CascadeIDE.Contracts.Experimental; |
| 2 | using CascadeIDE.Features.UiChrome; |
| 3 | using Xunit; |
| 4 | |
| 5 | namespace CascadeIDE.Tests; |
| 6 | |
| 7 | public 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 | |