瀏覽代碼

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);