Ver código fonte

Add cursor position test assert

Maciej Winnik 9 meses atrás
pai
commit
8a4962ca30
1 arquivos alterados com 1 adições e 0 exclusões
  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);