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

Remove() private method

private Remove ( string s, int startIndex, int count, string expected ) : void
s string
startIndex int
count int
expected string
return void
        public static void Remove(string s, int startIndex, int count, string expected)
        {
            if (startIndex + count == s.Length && count != 0)
            {
                Assert.Equal(expected, s.Remove(startIndex));
            }
            Assert.Equal(expected, s.Remove(startIndex, count));
        }
StringTests