소스 검색

Add cursor position test assert

Maciej Winnik 8 달 전
부모
커밋
8a4962ca30
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      UnitTests/Views/TimeFieldTests.cs

+ 1 - 0
UnitTests/Views/TimeFieldTests.cs

@@ -147,6 +147,7 @@ public class TimeFieldTests
         Assert.True (tf.NewKeyDownEvent (Key.End));
         Assert.Equal (8, tf.CursorPosition);
         Assert.True (tf.NewKeyDownEvent (Key.A.WithCtrl));
+        Assert.Equal (9, tf.CursorPosition);
         Assert.Equal (tf.SelectedLength, tf.Text.Length);
         Assert.True (tf.NewKeyDownEvent (Key.E.WithCtrl));
         Assert.Equal (8, tf.CursorPosition);