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

StartsWith() private method

private StartsWith ( string s, string value, StringComparison comparisonType, bool expected ) : void
s string
value string
comparisonType StringComparison
expected bool
return void
        public static void StartsWith(string s, string value, StringComparison comparisonType, bool expected)
        {
            if (comparisonType == StringComparison.CurrentCulture)
            {
                Assert.Equal(expected, s.StartsWith(value));
            }
            Assert.Equal(expected, s.StartsWith(value, comparisonType));
        }
StringTests