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()); }