Пример #1
0
        public void DocumentSnaphot_Should_Have_Correct_Line_Terminators()
        {
            TextDocument document = new TextDocument();

            document.Text = "puppy\r\npussy\r\nbirdie";

            DocumentSnapshot documentSnaphot = new DocumentSnapshot(document);

            Assert.AreEqual("\r\n", documentSnaphot.GetLineTerminator(0));
            Assert.AreEqual("\r\n", documentSnaphot.GetLineTerminator(1));
            Assert.AreEqual("", documentSnaphot.GetLineTerminator(2));
        }