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");
        }
        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");
        }
 public void empty_composite_filters_matches_any_module()
 {
     var compositeModuleFilter = new CompositeModuleFilter();
     Assert.IsTrue(compositeModuleFilter.Matches(_moduleInfo),
                   "Should have matched any module");
 }