csharpdeeb25a2 | 1 | using CascadeIDE.Features.Shell.Application; |
| 2 | using Xunit; |
| 3 | |
| 4 | namespace CascadeIDE.Tests; |
| 5 | |
| 6 | public sealed class CommandPaletteChromeModeHintsTests |
| 7 | { |
| 8 | [Fact] |
| 9 | public void Entries_Contains_f_t_m_x_c_InOrder() |
| 10 | { |
| 11 | var e = CommandPaletteChromeModeHints.Entries; |
| 12 | Assert.Collection( |
| 13 | e, |
| 14 | x => |
| 15 | { |
| 16 | Assert.Equal("f:", x.Prefix); Assert.Equal("файл", x.Label); |
| 17 | }, |
| 18 | x => |
| 19 | { |
| 20 | Assert.Equal("t:", x.Prefix); Assert.Equal("тип", x.Label); |
| 21 | }, |
| 22 | x => |
| 23 | { |
| 24 | Assert.Equal("m:", x.Prefix); Assert.Equal("член", x.Label); |
| 25 | }, |
| 26 | x => |
| 27 | { |
| 28 | Assert.Equal("x:", x.Prefix); Assert.Equal("текст", x.Label); |
| 29 | }, |
| 30 | x => |
| 31 | { |
| 32 | Assert.Equal("c:", x.Prefix); Assert.Equal("melody", x.Label); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | [Fact] |
| 37 | public void SeparatorLineJoin_JoinsWithBullet() |
| 38 | { |
| 39 | var s = CommandPaletteChromeModeHints.SeparatorLineJoin; |
| 40 | Assert.Contains("f: файл · t: тип · m: член · x: текст · c: melody", s, StringComparison.Ordinal); |
| 41 | } |
| 42 | } |
| 43 | |
View only · write via MCP/CIDE