Fixes #4374 - Nukes all (?) legacy Driver and Application stuff; revamps tests (#4376)

This commit is contained in:
Tig
2025-11-11 16:29:33 -07:00
committed by GitHub
parent 559dea9239
commit d53fcd7485
310 changed files with 14827 additions and 16911 deletions

View File

@@ -591,4 +591,20 @@ public class KeyTests
r.Dispose ();
}
[Fact]
public void Set_Key_Separator_With_Rune_Default_Ensure_Using_The_Default_Plus ()
{
Key key = new (Key.A.WithCtrl);
Assert.Equal ((Rune)'+', Key.Separator);
Assert.Equal ("Ctrl+A", key.ToString ());
// NOTE: This means this test can't be parallelized
Key.Separator = new ('-');
Assert.Equal ((Rune)'-', Key.Separator);
Assert.Equal ("Ctrl-A", key.ToString ());
Key.Separator = new ();
Assert.Equal ((Rune)'+', Key.Separator);
Assert.Equal ("Ctrl+A", key.ToString ());
}
}