Esempio n. 1
0
        public void NotEqualsFilter_matches_should_return_true_when_value_is_not_equals(string key, string value)
        {
            var filter = new NotEqualsTagFilter(key, value);

            filter.Matches(new TagCollection {
                { key, Guid.NewGuid().ToString() }
            }).Should().BeTrue();
        }
Esempio n. 2
0
        public void NotEqualsFilter_matches_should_return_true_when_collection_has_no_key()
        {
            var filter = new NotEqualsTagFilter("tag", "value");

            filter.Matches(new TagCollection {
                "tag1", { "tag2", "value2" }
            }).Should().BeTrue();
        }
Esempio n. 3
0
        public void NotEqualsFilter_matches_should_return_false(string key, string value)
        {
            var filter = new NotEqualsTagFilter(key, value);

            filter.Matches(new TagCollection {
                { key, value }
            }).Should().BeFalse();
        }
Esempio n. 4
0
        public void NotEqualsFilter_matches_should_return_true_when_collection_is_null()
        {
            var filter = new NotEqualsTagFilter("tag", "value");

            filter.Matches(null).Should().BeTrue();
        }