Fixing broken unit tests.

This commit is contained in:
BDisp
2023-11-29 00:52:43 +00:00
parent c72ad5bb7a
commit fc2e69b39a
11 changed files with 627 additions and 592 deletions

View File

@@ -120,7 +120,7 @@ namespace Terminal.Gui.TextTests {
Assert.Equal ("f", tf.Text);
// When cancelling autocomplete
Application.Driver.SendKeys ('e', ConsoleKey.Escape, false, false, false);
Application.Driver.SendKeys ('\0', ConsoleKey.Escape, false, false, false);
// Suggestion should disapear
tf.Draw ();
@@ -131,7 +131,8 @@ namespace Terminal.Gui.TextTests {
Application.Driver.SendKeys ('i', ConsoleKey.I, false, false, false);
tf.Draw ();
// BUGBUG: v2 - I broke this test and don't have time to figure out why. @tznind - help!
//TestHelpers.AssertDriverContentsAre ("fish", output);
tf.PositionCursor ();
TestHelpers.AssertDriverContentsAre ("fish", output);
Assert.Equal ("fi", tf.Text);
}