示例#1
0
        public void matches_based_on_anyOf()
        {
            instance.AnyOf(ANY_OF);
            ITypeFilter typeFilter = instance.CreateTypeFilter();

            Assert.That(typeFilter.Matches(ITEM_A), Is.True);
        }
示例#2
0
 public void throws_TypeMatcherError_if_conditions_empty_and_filter_requested()
 {
     Assert.Throws(typeof(TypeMatcherException), new TestDelegate(() =>
     {
         NamespaceMatcher emptyInstance = new NamespaceMatcher();
         emptyInstance.AnyOf(new string[0]).NoneOf(new string[0]);
         emptyInstance.CreateTypeFilter();
     }
                                                                  ));
 }