Add unit test which already works in TextField.

This commit is contained in:
BDisp
2024-10-01 21:17:24 +01:00
parent 6a6c210d9b
commit 7bf6aaa1ad

View File

@@ -2047,4 +2047,18 @@ Les Miśerables",
Assert.True (t.Visible);
Assert.False (t.Autocomplete.Visible);
}
[Fact]
[AutoInitShutdown]
public void Draw_Esc_Rune ()
{
var tf = new TextField { Width = 5, Text = "\u001b" };
tf.BeginInit ();
tf.EndInit ();
tf.Draw ();
TestHelpers.AssertDriverContentsWithFrameAre ("\u241b", output);
tf.Dispose ();
}
}