瀏覽代碼

Add unit test which already works in TextField.

BDisp 10 月之前
父節點
當前提交
7bf6aaa1ad
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      UnitTests/Views/TextFieldTests.cs

+ 14 - 0
UnitTests/Views/TextFieldTests.cs

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