System.Net.WebHeaderCollectionTests.WebHeaderCollectionTest.HttpResponseHeader_AddQuery_CommonHeader_Success C# (CSharp) Method

HttpResponseHeader_AddQuery_CommonHeader_Success() private method

private HttpResponseHeader_AddQuery_CommonHeader_Success ( ) : void
return void
        public void HttpResponseHeader_AddQuery_CommonHeader_Success()
        {
            string headerValue = "value123";
            WebHeaderCollection w = new WebHeaderCollection();
            w[HttpResponseHeader.ProxyAuthenticate] = headerValue;
            w[HttpResponseHeader.WwwAuthenticate] = headerValue;

            Assert.Equal(headerValue, w[HttpResponseHeader.ProxyAuthenticate]);
            Assert.Equal(headerValue, w[HttpResponseHeader.WwwAuthenticate]);
        }
WebHeaderCollectionTest