mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Fixes #1387. Allowing the UnitTests project to test internal keywords.
This commit is contained in:
@@ -2568,5 +2568,15 @@ namespace Terminal.Gui.Core {
|
||||
// Shutdown must be called to safely clean up Application if Init has been called
|
||||
Application.Shutdown ();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Internal_Tests ()
|
||||
{
|
||||
var tf = new TextFormatter ();
|
||||
Assert.Equal (Key.Null, tf.HotKey);
|
||||
tf.HotKey = Key.CtrlMask | Key.Q;
|
||||
Assert.Equal (Key.CtrlMask | Key.Q, tf.HotKey);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user