public void TestMoveToDocumentEnd()
        {
            TextEditorData data = CaretMoveActionTests.Create(@"1234567890
1234567890
1234$567890
1234567890
1234567890");

            SelectionActions.MoveToDocumentEnd(data);
            Assert.AreEqual(new Selection(DocumentLocation.MinLine + 2, DocumentLocation.MinColumn + 4, DocumentLocation.MinLine + 4, DocumentLocation.MinColumn + 10), data.MainSelection);
        }
Exemplo n.º 2
0
        public void TestMoveToDocumentEnd()
        {
            TextEditorData data = CaretMoveActionTests.Create(@"1234567890
1234567890
1234$567890
1234567890
1234567890");

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