Ejemplo n.º 1
0
        public void AppendLineIfPreviousLineIsEndStatementAppendsNewLineIfPreviousLineIsEndStatement()
        {
            codeBuilder.AppendIndentedLine("end");
            codeBuilder.AppendLineIfPreviousLineIsEndStatement();

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