示例#1
0
        public void GetWithDefaultValue()
        {
            TestDefaultHeaders headers = NewInstance();

            headers.Add(Of("name1"), Of("value1"));

            Assert.Equal(Of("value1"), headers.Get(Of("name1"), Of("defaultvalue")));
            Assert.Equal(Of("defaultvalue"), headers.Get(Of("noname"), Of("defaultvalue")));
        }