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

ReceiveDataTimeout_SetNegativeValue_ThrowsArgumentOutOfRangeException() private method

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

            Assert.Throws<ArgumentOutOfRangeException>(
                () => { handler.ReceiveDataTimeout = TimeSpan.FromMinutes(-10); });
        }
WinHttpHandlerTest