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

BeginGetRequestStream_CreateRequestThenBeginGetResponsePrior_ThrowsInvalidOperationException() private method

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

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