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

MaxAutomaticRedirections_SetNegativeValue_ThrowsArgumentOutOfRangeException() private method

        public void MaxAutomaticRedirections_SetNegativeValue_ThrowsArgumentOutOfRangeException()
        {
            var handler = new WinHttpHandler();
            Assert.Throws<ArgumentOutOfRangeException>(() => { handler.MaxAutomaticRedirections = -1; });
        }
WinHttpHandlerTest