System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails C# (CSharp) Метод

ServerAsyncAuthenticate_MismatchProtocols_Fails() приватный Метод

private ServerAsyncAuthenticate_MismatchProtocols_Fails ( SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException ) : System.Threading.Tasks.Task
serverProtocol SslProtocols
clientProtocol SslProtocols
expectedException Type
Результат System.Threading.Tasks.Task
        public async Task ServerAsyncAuthenticate_MismatchProtocols_Fails(
            SslProtocols serverProtocol,
            SslProtocols clientProtocol,
            Type expectedException)
        {
            await Assert.ThrowsAsync(
                expectedException,
                () =>
                {
                    return ServerAsyncSslHelper(
                        serverProtocol,
                        clientProtocol,
                        expectedToFail: true);
                });
        }