소스 검색

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