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

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

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