public void TrimEnd() { codeBuilder.Append("abc"); codeBuilder.AppendLine(); codeBuilder.Append("def"); codeBuilder.AppendLine(); codeBuilder.TrimEnd(); Assert.AreEqual("abc\r\ndef", codeBuilder.ToString()); }
public void IndentPassedToConstructor() { codeBuilder = new RubyCodeBuilder(2); codeBuilder.AppendIndented("abc"); Assert.AreEqual("\t\tabc", codeBuilder.ToString()); }
public void AppendNewLine() { codeBuilder.AppendLine(); Assert.AreEqual("\r\n", codeBuilder.ToString()); }