public void AutoIndentingTextWriter_TooMuchOutdent()
 {
     var lines = new[] {
                 "{",
                  "}",
                 "}"
          };
     var value = lines.IndentLines().ToList();
     Assert.Fail("Should not reach this point", value);
 }
 public void AutoIndentingTextWriter_StandardCase()
 {
     var lines = new[] {
                 "{",
                  "{}",
                 "hello{",
                   "}",
                    "}"
          };
     string actual = lines.IndentLines("_").JoinNewLine();
     var expected =
     @"{
     _{}
     _hello{
     _}
     }";
     Assert.AreEqual(expected, actual);
 }