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

@@ -773,5 +773,17 @@ namespace Terminal.Gui.Views {
Assert.Equal ("", tf.Text);
}
[Fact]
[InitShutdown]
public void Text_Replaces_Tabs_With_Empty_String ()
{
_textField.Text = "\t\tTAB to jump between text fields.";
Assert.Equal ("TAB to jump between text fields.", _textField.Text);
_textField.Text = "";
Clipboard.Contents = "\t\tTAB to jump between text fields.";
_textField.Paste ();
Assert.Equal ("TAB to jump between text fields.", _textField.Text);
}
}
}