csharpdeeb25a2 | 1 | using CascadeIDE.Services; |
| 2 | using Xunit; |
| 3 | |
| 4 | namespace CascadeIDE.Tests; |
| 5 | |
| 6 | public sealed class IdeCommandDocDisplayTests |
| 7 | { |
| 8 | [Fact] |
| 9 | public void ShortTitleForCommandId_Truncates_before_returns_clause() |
| 10 | { |
| 11 | var t = IdeCommandDocDisplay.ShortTitleForCommandId("debug_continue"); |
| 12 | Assert.Contains("Продолжить", t, StringComparison.Ordinal); |
| 13 | Assert.DoesNotContain("returns:", t, StringComparison.OrdinalIgnoreCase); |
| 14 | } |
| 15 | |
| 16 | [Fact] |
| 17 | public void ShortTitleForCommandId_UnknownId_returns_id() |
| 18 | { |
| 19 | Assert.Equal("__no_such_command_xyz__", IdeCommandDocDisplay.ShortTitleForCommandId("__no_such_command_xyz__")); |
| 20 | } |
| 21 | } |
| 22 | |
View only · write via MCP/CIDE