mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes #1387. Allowing the UnitTests project to test internal keywords.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user