System.Net.Tests.HttpWebRequestTest.BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException C# (CSharp) Method

BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException() private method

private BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException ( Uri remoteServer ) : void
remoteServer Uri
return void
        public void BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException(Uri remoteServer)
        {
            _savedHttpWebRequest = HttpWebRequest.CreateHttp(remoteServer);

            IAsyncResult asyncResult = _savedHttpWebRequest.BeginGetResponse(null, null);
            Assert.Throws<InvalidOperationException>(() =>
            {
                _savedHttpWebRequest.BeginGetResponse(null, null);
            });
        }
HttpWebRequestTest