System.Net.Http.Tests.AuthenticationHeaderValueTest.GetAuthenticationLength_DifferentInvalidScenarios_AllReturnZero C# (CSharp) Method

GetAuthenticationLength_DifferentInvalidScenarios_AllReturnZero() private method

        public void GetAuthenticationLength_DifferentInvalidScenarios_AllReturnZero()
        {
            CheckInvalidGetAuthenticationLength(" NTLM", 0); // no leading whitespace allowed
            CheckInvalidGetAuthenticationLength("Basic=", 0);
            CheckInvalidGetAuthenticationLength("=Basic", 0);
            CheckInvalidGetAuthenticationLength("Digest a=b, \u670D", 0);
            CheckInvalidGetAuthenticationLength("Digest a=b, c=d, \u670D", 0);
            CheckInvalidGetAuthenticationLength("Digest a=b, c=", 0);
            CheckInvalidGetAuthenticationLength("Digest a=\"b, c", 0);
            CheckInvalidGetAuthenticationLength("Digest a=\"b", 0);
            CheckInvalidGetAuthenticationLength("Digest a=b, c=\u670D", 0);

            CheckInvalidGetAuthenticationLength("", 0);
            CheckInvalidGetAuthenticationLength(null, 0);
        }