csharpdeeb25a2 | 1 | using CascadeIDE.Cockpit.ComputingUnits.IdeHealth; |
| 2 | using Xunit; |
| 3 | |
| 4 | namespace CascadeIDE.Tests; |
| 5 | |
| 6 | public sealed class IdeHealthGitSegmentUnitTests |
| 7 | { |
| 8 | [Fact] |
| 9 | public void Compose_returns_workspace_stratum_and_preserves_texts() |
| 10 | { |
| 11 | var segment = IdeHealthGitSegmentUnit.Default.Compose("Git: dirty +2/-1", "main*"); |
| 12 | |
| 13 | Assert.Equal(IdeHealthStratum.Workspace, segment.Stratum); |
| 14 | Assert.Equal(IdeHealthScope.Solution, segment.Scope); |
| 15 | Assert.Equal("Git: dirty +2/-1", segment.LineText); |
| 16 | Assert.Equal("main*", segment.CockpitShort); |
| 17 | } |
| 18 | } |
| 19 | |
View only · write via MCP/CIDE