public void Should_successfully_tune_http_web_request() { var request = WebRequest.CreateHttp("http://kontur.ru/"); WebRequestTuner.Tune(request, 1.Seconds(), new WebRequestTransportSettings()); request.GetHashCode(); }
public void Test() { var settings = new WebRequestTransportSettings(); new WebRequestTransport(settings, new SilentLog()).GetHashCode(); HttpWebRequest.DefaultMaximumErrorResponseLength.Should().Be(-1); var request = WebRequest.CreateHttp("http://kontur.ru/"); WebRequestTuner.Tune(request, 1.Seconds(), new WebRequestTransportSettings()); request.MaximumResponseHeadersLength.Should().Be(int.MaxValue); }