System.Tests.StringTests.CopyTo C# (CSharp) Method

CopyTo() private method

private CopyTo ( string s, int sourceIndex, int destinationIndex, int count, char expected ) : void
s string
sourceIndex int
destinationIndex int
count int
expected char
return void
        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);
        }
StringTests