System.Net.Http.WinHttpHandlerUnitTests.WinHttpHandlerTest.SslProtocols_SetUsingUnsupported_Throws C# (CSharp) Method

SslProtocols_SetUsingUnsupported_Throws() private method

private SslProtocols_SetUsingUnsupported_Throws ( SslProtocols protocol ) : void
protocol SslProtocols
return void
        public void SslProtocols_SetUsingUnsupported_Throws(SslProtocols protocol)
        {
            var handler = new WinHttpHandler();

            Assert.Throws<NotSupportedException>(() => { handler.SslProtocols = protocol; });
        }
WinHttpHandlerTest