System.Net.Mail.Tests.EhloParseExtensionsTest.ParseExtensions_WithBothAuthEqualsLoginAndAuth_ShouldTakeSettingsFromAuth C# (CSharp) Method

ParseExtensions_WithBothAuthEqualsLoginAndAuth_ShouldTakeSettingsFromAuth() private method

        public void ParseExtensions_WithBothAuthEqualsLoginAndAuth_ShouldTakeSettingsFromAuth()
        {
            // reverse the order that the strings occur in from the other test since we don't
            // know for sure which string will come first, although typically it's AUTH followed by AUTH=
            _extensions = new string[] { AuthEqualsLogin, AuthEqualsNtlm, AuthEqualsGssapi, AuthAllTypes };
            _smtpConnection.ParseExtensions(_extensions);

            Assert.False(_smtpConnection.DSNEnabled);
            Assert.True(_smtpConnection.AuthSupported(s_loginModule));
            Assert.True(_smtpConnection.AuthSupported(s_ntlmModule));
            Assert.True(_smtpConnection.AuthSupported(s_gssapiModule));
        }