public void GetLineAt_EmptyLine_ReturnsEmptyLine()
        {
            var line = DocumentOperations.GetLineAt(myDocument.ContentStart.GetPositionAtOffset(73));

            Assert.That(line.Text, Is.EqualTo(string.Empty));
        }
        public void GetWords_WhenCalled_ReturnsAllWordsOfARange()
        {
            var line = DocumentOperations.GetLineAt(DocumentOperations.GetPointerFromCharOffset(myDocument.Content(), 40));

            Assert.That(DocumentOperations.GetWords(line).Select(x => x.Text), Is.EquivalentTo(new[] { "a", "second", "line", "would", "be", "helpful." }));
        }
        public void GetLineAt_WhenCalled_ReturnsLineContent()
        {
            var line = DocumentOperations.GetLineAt(DocumentOperations.GetPointerFromCharOffset(myDocument.Content(), 40));

            Assert.That(line.Text, Is.EqualTo("a second line would be helpful."));
        }