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

WindowsProxyUsePolicy_SetUsingInvalidEnum_ThrowArgumentOutOfRangeException() private method

        public void WindowsProxyUsePolicy_SetUsingInvalidEnum_ThrowArgumentOutOfRangeException()
        {
            var handler = new WinHttpHandler();

            Assert.Throws<ArgumentOutOfRangeException>(
                () => { handler.WindowsProxyUsePolicy = (WindowsProxyUsePolicy)100; });
        }
WinHttpHandlerTest