public void CreateTwoFolds_StateAfterCollapseAndExpandShouldNotChange()
        {
            const string text1 = "asdf {";
            const string text2 = "";
            const string text3 = "} qwer";
            const string text4 = "{";
            const string text5 = "";
            const string text6 = "}";
            const string text7 = "xzcv";

            tv.EnterText(text1);
            tv.EnterText("\r");
            tv.EnterText(text2);
            tv.EnterText("\r");
            tv.EnterText(text3);
            tv.EnterText("\r");
            tv.EnterText(text4);
            tv.EnterText("\r");
            tv.EnterText(text5);
            tv.EnterText("\r");
            tv.EnterText(text6);
            tv.EnterText("\r");
            tv.EnterText(text7);
            tv.EnterText("\r");

            tv.HandleTextFolding(GetFoldClickedMessage(5, 0, 0, 2, FoldingStates.FOLDED));
            tv.HandleTextFolding(GetFoldClickedMessage(5, 0, 0, 2, FoldingStates.EXPANDED));

            var renderedLines = tv.GetScreenLines();
            var actualLines   = tv.GetActualLines();

            Assert.IsTrue(renderedLines.SequenceEqual(actualLines));
        }