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

ContentType_SetThenGet_ExpectSameValue() private method

private ContentType_SetThenGet_ExpectSameValue ( Uri remoteServer ) : void
remoteServer Uri
return void
        public void ContentType_SetThenGet_ExpectSameValue(Uri remoteServer)
        {
            HttpWebRequest request = WebRequest.CreateHttp(remoteServer);
            string myContent = "application/x-www-form-urlencoded";
            request.ContentType = myContent;
            Assert.Equal(myContent, request.ContentType);
        }
HttpWebRequestTest