public void TestCopyTo() { StringSegment seg = new StringSegment("hey", 1); char[] ach = { 'o', 'x' }; seg.CopyTo(1, ach, 1, 1); CollectionAssert.AreEqual(new char[] { 'o', 'y' }, ach); }