Inheritance: Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter
コード例 #1
0
        public void Contains_IsCorrectWhenValueIsNull()
        {
            var adapter = new NameValueCollectionAdapter(nameValueCollection);
            adapter["a key"] = null;

            Assert.IsTrue(adapter.Contains("A Key"));
        }
コード例 #2
0
        public void Contains_IsCaseInsensitive()
        {
            var adapter = new NameValueCollectionAdapter(nameValueCollection);
            adapter["a key"] = "a value";

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