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

WebHeaderCollection_Keys_Success() private method

private WebHeaderCollection_Keys_Success ( ) : void
return void
        public void WebHeaderCollection_Keys_Success()
        {
            WebHeaderCollection w = new WebHeaderCollection();
            w.Add(HttpRequestHeader.ContentLength, "10");
            w.Add(HttpRequestHeader.ContentType, "text/html");
            Assert.Equal(2, w.Keys.Count);
        }
WebHeaderCollectionTest