System.Net.Http.Tests.HttpHeaderValueCollectionTest.IsSpecialValueSet_NoSpecialValueUsed_ReturnsFalse C# (CSharp) Method

IsSpecialValueSet_NoSpecialValueUsed_ReturnsFalse() private method

private IsSpecialValueSet_NoSpecialValueUsed_ReturnsFalse ( ) : void
return void
        public void IsSpecialValueSet_NoSpecialValueUsed_ReturnsFalse()
        {
            // Create a new collection _without_ specifying a special value.
            MockHeaders headers = new MockHeaders(knownHeader, new MockHeaderParser(typeof(Uri)));
            HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownHeader, headers,
                null, null);

            Assert.False(collection.IsSpecialValueSet,
                "Special value is set even though collection doesn't define a special value.");
        }
HttpHeaderValueCollectionTest