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

ContentType_SetThenGetEmptyValue_ExpectNull() private method

private ContentType_SetThenGetEmptyValue_ExpectNull ( Uri remoteServer ) : void
remoteServer Uri
return void
        public void ContentType_SetThenGetEmptyValue_ExpectNull(Uri remoteServer)
        {
            HttpWebRequest request = WebRequest.CreateHttp(remoteServer);
            request.ContentType = string.Empty;
            Assert.Null(request.ContentType);
        }
HttpWebRequestTest