public void Validate_Filter_Collection() { var collection = new NameValueCollection { { "oauth_consumer_key", "key" }, { "car", "black" }, { "oauth_timestamp", "timestamp" }, { "oauth_signature", "sig" } }; var filteredCollection = new NameValueCollection { { "car", "black" } }; collection.FilterCollection().CollectionEquals(filteredCollection).Should().BeTrue(); }