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

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