mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
24 lines
656 B
C#
24 lines
656 B
C#
using System.Text;
|
|
|
|
namespace UnitTests.InputTests;
|
|
|
|
public class KeyTests
|
|
{
|
|
[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 ());
|
|
}
|
|
}
|