System.Net.WebHeaderCollectionTests.WebHeaderCollectionTest.HttpResponseHeader_AddQuery_CommonHeader_Success C# (CSharp) Метод

HttpResponseHeader_AddQuery_CommonHeader_Success() приватный Метод

private HttpResponseHeader_AddQuery_CommonHeader_Success ( ) : void
Результат 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