Example #1
0
 public void IndentPassedToConstructor()
 {
     codeBuilder = new RubyCodeBuilder(2);
     codeBuilder.AppendIndented("abc");
     Assert.AreEqual("\t\tabc", codeBuilder.ToString());
 }
Example #2
0
 public void AppendIndentedText()
 {
     codeBuilder.IncreaseIndent();
     codeBuilder.AppendIndented("abc");
     Assert.AreEqual("\tabc", codeBuilder.ToString());
 }