System.Net.Tests.HttpWebRequestTest.BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException C# (CSharp) 메소드

BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException() 개인적인 메소드

private BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException ( Uri remoteServer ) : void
remoteServer Uri
리턴 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