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

ToString_NotEmpty_Success() private method

private ToString_NotEmpty_Success ( ) : void
return void
        public void ToString_NotEmpty_Success()
        {
            WebHeaderCollection w = new WebHeaderCollection();
            w["Accept"] = "text/plain";
            w["Content-Length"] = "123";
            Assert.Equal(
                "Accept: text/plain\r\nContent-Length: 123\r\n\r\n",
                w.ToString());
        }
WebHeaderCollectionTest