System.Net.WebHeaderCollectionTests.WebHeaderCollectionTest.ToString_NotEmpty_Success C# (CSharp) 메소드

ToString_NotEmpty_Success() 개인적인 메소드

private ToString_NotEmpty_Success ( ) : void
리턴 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