예제 #1
0
        public void HasKeyKeyDoesNotExistsReturnsFalse()
        {
            var collection = new NameValueCollection {
                { "exists", "whatever" }
            };

            Assert.IsFalse(NameValueCollectionExtentions.HasKey(collection, "DoesNotExist"));
        }
예제 #2
0
        public void HasKeyKeyExistsReturnsTrue()
        {
            var collection = new NameValueCollection {
                { "Exists", "whatever" }
            };

            Assert.IsTrue(NameValueCollectionExtentions.HasKey(collection, "Exists"));
        }