public void HasKeyKeyDoesNotExistsReturnsFalse() { var collection = new NameValueCollection { { "exists", "whatever" } }; Assert.IsFalse(NameValueCollectionExtentions.HasKey(collection, "DoesNotExist")); }
public void HasKeyKeyExistsReturnsTrue() { var collection = new NameValueCollection { { "Exists", "whatever" } }; Assert.IsTrue(NameValueCollectionExtentions.HasKey(collection, "Exists")); }