public void EqualsFilter_matches_should_return_false_when_collection_has_no_key() { var filter = new EqualsTagFilter("tag", "value"); filter.Matches(new TagCollection { "tag1", { "tag2", "value2" } }).Should().BeFalse(); }
public void EqualsFilter_matches_should_return_true(string key, string value) { var filter = new EqualsTagFilter(key, value); filter.Matches(new TagCollection { { key, value } }).Should().BeTrue(); }
public void EqualsFilter_matches_should_return_false_when_value_is_not_equals(string key, string value) { var filter = new EqualsTagFilter(key, value); filter.Matches(new TagCollection { { key, Guid.NewGuid().ToString() } }).Should().BeFalse(); }
public void EqualsFilter_matches_should_return_false_when_collection_is_null() { var filter = new EqualsTagFilter("tag", "value"); filter.Matches(null).Should().BeFalse(); }