Exemplo n.º 1
0
        public void empty_composite_filters_matches_any_module()
        {
            var compositeModuleFilter = new CompositeModuleFilter();

            Assert.IsTrue(compositeModuleFilter.Matches(_moduleInfo),
                          "Should have matched any module");
        }
Exemplo n.º 2
0
        public void doesnt_match_when_any_subfilter_doesnt_match()
        {
            var moduleFilters = new[]
            {
                CreateModuleFilter(true),
                CreateModuleFilter(false),
                CreateModuleFilter(true)
            };

            var compositeModuleFilter = new CompositeModuleFilter(moduleFilters);

            Assert.IsFalse(compositeModuleFilter.Matches(_moduleInfo),
                           "Shouldn't have matched the module");
        }
Exemplo n.º 3
0
        public void matches_when_all_subfilters_match()
        {
            var moduleFilters = new[]
            {
                CreateModuleFilter(true),
                CreateModuleFilter(true),
                CreateModuleFilter(true)
            };

            var compositeModuleFilter = new CompositeModuleFilter(moduleFilters);

            Assert.IsTrue(compositeModuleFilter.Matches(_moduleInfo),
                          "Should have matched the module");
        }