Beispiel #1
0
        public void IndentLinesIndentsChildElement()
        {
            document.Text =
                "<root>\r\n" +
                "<child>\r\n" +
                "</child>\r\n" +
                "</root>";

            string expectedText =
                "<root>\r\n" +
                "\t<child>\r\n" +
                "\t</child>\r\n" +
                "</root>";

            formattingStrategy.IndentLines(textEditor, 1, 4);

            Assert.AreEqual(expectedText, document.Text);
        }
Beispiel #2
0
 public void Indent()
 {
     _formattingStrategy.IndentLines(this, 1, Document.LineCount);
 }