csharpdeeb25a2 | 1 | using CascadeIDE.Contracts.Experimental; |
| 2 | using CascadeIDE.Features.UiChrome; |
| 3 | using CascadeIDE.Services.Capabilities; |
| 4 | using Xunit; |
| 5 | |
| 6 | namespace CascadeIDE.Tests; |
| 7 | |
| 8 | public sealed class VerticalSliceAttentionCapabilitiesTests : IDisposable |
| 9 | { |
| 10 | public VerticalSliceAttentionCapabilitiesTests() => |
| 11 | AttentionZonePanelRuntime.ResetToCodeDefaults(); |
| 12 | |
| 13 | public void Dispose() => |
| 14 | AttentionZonePanelRuntime.ResetToCodeDefaults(); |
| 15 | |
| 16 | [Fact] |
| 17 | public void UiChrome_module_registers_solution_explorer_surface_consistent_with_runtime() |
| 18 | { |
| 19 | var registry = new SimpleCapabilityRegistry(); |
| 20 | new UiChromeCapabilitiesModule().Register(registry); |
| 21 | var map = registry.BuildMap(); |
| 22 | |
| 23 | Assert.Single(map.UiSurfaces); |
| 24 | var s = map.UiSurfaces[0]; |
| 25 | Assert.Equal(CapabilityIds.UiChrome.SolutionExplorerSurface, s.Id); |
| 26 | Assert.Equal(AttentionZoneCanonicalIds.Pfd, s.PrimaryAttentionZoneId); |
| 27 | Assert.Equal(AttentionPanelCanonicalIds.SolutionExplorer, s.HostAttentionPanelId); |
| 28 | Assert.Null(CapabilityAttentionConsistency.TryGetUiSurfaceIssue(s)); |
| 29 | } |
| 30 | } |
| 31 | |
View only · write via MCP/CIDE