Fixes #1387. Allowing the UnitTests project to test internal keywords.

This commit is contained in:
BDisp
2021-07-23 23:02:22 +01:00
parent 52a5fccdc4
commit b200763a3f
14 changed files with 344 additions and 22 deletions

View File

@@ -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);
}
}
}