public void AppendCreateComponentsContainerTwice()
        {
            codeBuilder.IndentString = "  ";
            codeBuilder.IncreaseIndent();
            codeBuilder.AppendIndentedLine("self._listView = System.Windows.Forms.ListView()");
            codeBuilder.InsertCreateComponentsContainer();
            codeBuilder.InsertCreateComponentsContainer();

            string expectedCode =
                "  self._components = System.ComponentModel.Container()\r\n" +
                "  self._listView = System.Windows.Forms.ListView()\r\n";

            Assert.AreEqual(expectedCode, codeBuilder.ToString());
        }
 public void AppendIndentedText()
 {
     codeBuilder.IncreaseIndent();
     codeBuilder.AppendIndented("abc");
     Assert.AreEqual("\tabc", codeBuilder.ToString());
 }