System.Net.Security.Tests.SslStreamAllowedProtocolsTest.SslStream_AuthenticateAsClientAsync_NotSupported_Fails C# (CSharp) Method

SslStream_AuthenticateAsClientAsync_NotSupported_Fails() private method

private SslStream_AuthenticateAsClientAsync_NotSupported_Fails ( SslProtocols protocol ) : void
protocol SslProtocols
return void
        public void SslStream_AuthenticateAsClientAsync_NotSupported_Fails(SslProtocols protocol)
        {
            SslStream stream = new SslStream(new NotImplementedStream());
            Assert.Throws<NotSupportedException>(() => AuthenticateAsClient(stream, false, "host", null, protocol, false));
        }