Example #1
0
        public void ConcatenateStringToRope()
        {
            StringBuilder b    = new StringBuilder();
            Rope <char>   rope = new Rope <char>();

            for (int i = 1; i <= 1000; i++)
            {
                b.Append(i.ToString());
                rope.AddText(i.ToString());
                b.Append(' ');
                rope.Add(' ');
            }
            Assert.AreEqual(b.ToString(), rope.ToString());
        }