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

Contains_CallWithNullValue_Throw() private method

private Contains_CallWithNullValue_Throw ( ) : void
return void
        public void Contains_CallWithNullValue_Throw()
        {
            MockHeaders headers = new MockHeaders(knownHeader, new MockHeaderParser(typeof(Uri)));
            HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownHeader, headers);

            Assert.Throws<ArgumentNullException>(() => { collection.Contains(null); });
        }
HttpHeaderValueCollectionTest