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

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

private IterateCollection_Success ( ) : void
Результат void
        public void IterateCollection_Success()
        {
            WebHeaderCollection w = new WebHeaderCollection();
            w["Accept"] = "text/plain";
            w["Content-Length"] = "123";

            string result = "";
            foreach (var item in w)
            {
                result += item;
            }

            Assert.Equal("AcceptContent-Length", result);
        }
WebHeaderCollectionTest