public void ClearIndentTest() { var tg = new TextGenerator(); tg.PushIndent(4); tg.ClearIndent(); tg.Write("x"); Assert.AreEqual("x", tg.Content); }