System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_EachServerUnsupportedProtocol_Fail C# (CSharp) Method

ServerAsyncAuthenticate_EachServerUnsupportedProtocol_Fail() private method

private ServerAsyncAuthenticate_EachServerUnsupportedProtocol_Fail ( SslProtocols protocol ) : System.Threading.Tasks.Task
protocol SslProtocols
return System.Threading.Tasks.Task
        public async Task ServerAsyncAuthenticate_EachServerUnsupportedProtocol_Fail(SslProtocols protocol)
        {
            await Assert.ThrowsAsync<NotSupportedException>(() =>
            {
                return ServerAsyncSslHelper(
                    SslProtocolSupport.SupportedSslProtocols,
                    protocol,
                    expectedToFail: true);
            });
        }