Example #1
0
        public void AppendLineIfPreviousLineIsEndStatementAppendsNewLineIfPreviousLineIsEndStatement()
        {
            codeBuilder.AppendIndentedLine("end");
            codeBuilder.AppendLineIfPreviousLineIsEndStatement();

            Assert.AreEqual("end\r\n\r\n", codeBuilder.ToString());
        }
Example #2
0
 public void AppendIndentedLine()
 {
     codeBuilder.IncreaseIndent();
     codeBuilder.AppendIndentedLine("abc");
     Assert.AreEqual("\tabc\r\n", codeBuilder.ToString());
 }