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

BeginGetRequestStream_UseGETVerb_ThrowsProtocolViolationException() private method

private BeginGetRequestStream_UseGETVerb_ThrowsProtocolViolationException ( Uri remoteServer ) : void
remoteServer Uri
return void
        public void BeginGetRequestStream_UseGETVerb_ThrowsProtocolViolationException(Uri remoteServer)
        {
            HttpWebRequest request = WebRequest.CreateHttp(remoteServer);
            Assert.Throws<ProtocolViolationException>(() =>
            {
                request.BeginGetRequestStream(null, null);
            });
        }
HttpWebRequestTest