public void AppendLineIfPreviousLineIsEndStatementAppendsNewLineIfPreviousLineIsEndStatement() { codeBuilder.AppendIndentedLine("end"); codeBuilder.AppendLineIfPreviousLineIsEndStatement(); Assert.AreEqual("end\r\n\r\n", codeBuilder.ToString()); }
public void AppendIndentedLine() { codeBuilder.IncreaseIndent(); codeBuilder.AppendIndentedLine("abc"); Assert.AreEqual("\tabc\r\n", codeBuilder.ToString()); }