Pārlūkot izejas kodu

Add cursor position test assert

Maciej Winnik 8 mēneši atpakaļ
vecāks
revīzija
8a4962ca30
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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);