public void InsertText_Simple() { Init(); lines.SetText("line0\nline1 text\r\nline3"); CollectionAssert.AreEqual(new string[] { "line0\n", "line1 text\r\n", "line3" }, lines.Debug_GetLinesText()); // line0N // line1 textRN // line3 lines.InsertText(4, "ABCDEFGH"); CollectionAssert.AreEqual(new string[] { "lineABCDEFGH0\n", "line1 text\r\n", "line3" }, lines.Debug_GetLinesText()); Assert.AreEqual(31, lines.charsCount); }