Contains() public method

Determines whether the object contains an element with the specified key.
key is null.
public Contains ( object key ) : bool
key object The key to locate in the object.
return bool
        public void Contains_IsCorrectWhenValueIsNull()
        {
            var adapter = new NameValueCollectionAdapter(nameValueCollection);
            adapter["a key"] = null;

            Assert.IsTrue(adapter.Contains("A Key"));
        }
        public void Contains_IsCaseInsensitive()
        {
            var adapter = new NameValueCollectionAdapter(nameValueCollection);
            adapter["a key"] = "a value";

            Assert.IsTrue(adapter.Contains("A Key"));
        }