public void CaretIndex_Can_Moved_To_Position_After_The_End_Of_Text_With_Arrow_Key() { using (Start()) { var target = new MaskedTextBox { Template = CreateTemplate(), Text = "1234" }; target.ApplyTemplate(); target.CaretIndex = 3; target.Measure(Size.Infinity); RaiseKeyEvent(target, Key.Right, 0); Assert.Equal(4, target.CaretIndex); } }