public static void CopyTo(string value, int sourceIndex, char[] destination, int destinationIndex, int count, char[] expected) { var builder = new StringBuilder(value); builder.CopyTo(sourceIndex, destination, destinationIndex, count); Assert.Equal(expected, destination); }