void IEditorOperations.MoveToEndOfLine(bool extendSelection)
 {
     if (extendSelection)
     {
         SelectionActions.MoveLineEnd(TextEditor.GetTextEditorData());
     }
     else
     {
         CaretMoveActions.LineEnd(TextEditor.GetTextEditorData());
     }
 }
        public void TestMoveLineEnd()
        {
            TextEditorData data = CaretMoveActionTests.Create(@"1234567890
1234567890
1234$567890
1234567890
1234567890");

            SelectionActions.MoveLineEnd(data);
            Assert.AreEqual(new Selection(DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 10), data.MainSelection);
        }
Beispiel #3
0
        public void TestMoveLineEnd()
        {
            TextEditorData data = CaretMoveActionTests.Create(@"1234567890
1234567890
1234$567890
1234567890
1234567890");

            SelectionActions.MoveLineEnd(data);
            Assert.AreEqual(new Selection(2, 4, 2, 10), data.MainSelection);
        }