public static void CopyTo(string s, int sourceIndex, int destinationIndex, int count, char[] expected) { char[] dst = new char[expected.Length]; s.CopyTo(sourceIndex, dst, destinationIndex, count); Assert.Equal(expected, dst); }