private void VerifyAttemptCount(int count) { HttpClientHandler.Verify( x => x.OnSendAsync(It.IsAny <HttpRequestMessage>(), It.IsAny <CancellationToken>()), Times.Exactly(count)); }