Criteria that is satisfied if the Name property of an System.Reflection.MethodInfo instance matches a supplied regular expression pattern.
Inheritance: RegularExpressionCriteria
        public void IsSatisfiedWithAnythingByDefault()
        {
            RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria();
            MethodInfo method = typeof(TestObject).GetMethod("OnClick");

            Assert.IsTrue(criteria.IsSatisfied(method));
        }
        public void IsNotSatisfiedWithGarbage()
        {
            RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria("BingoBango");
            MethodInfo method = typeof(TestObject).GetMethod("OnClick");

            Assert.IsFalse(criteria.IsSatisfied(method));
        }
 public void IsSatisfiedWithAnythingByDefault () 
 {
 	RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria ();
     MethodInfo method = typeof(TestObject).GetMethod("OnClick");
     Assert.IsTrue (criteria.IsSatisfied (method));
 }
 public void IsNotSatisfiedWithNull () 
 {
     RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria("OnClick");
     Assert.IsFalse (criteria.IsSatisfied (null));
 }
 public void IsNotSatisfiedWithGarbage () 
 {
 	RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria ("BingoBango");
     MethodInfo method = typeof(TestObject).GetMethod("OnClick");
     Assert.IsFalse (criteria.IsSatisfied (method));
 }
        public void IsNotSatisfiedWithNull()
        {
            RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria("OnClick");

            Assert.IsFalse(criteria.IsSatisfied(null));
        }