CSharpTradeOffers_Tests.WebTests.RetryFetch_ReturnsNull_WhenExceedingRetryCount C# (CSharp) Method

RetryFetch_ReturnsNull_WhenExceedingRetryCount() private method

private RetryFetch_ReturnsNull_WhenExceedingRetryCount ( ) : void
return void
        public void RetryFetch_ReturnsNull_WhenExceedingRetryCount()
        {
            _mockRequestHandler.Setup(x => x.HandleWebRequest(Url, Method, null, null, true, "", false)).Throws<WebException>();

            IResponse response = _web.Fetch(Url, Method, null, null, true, "", false, 1000, 2);

            Assert.IsNull(response);
        }