Example #1
0
        public void IsSatisfiedWithAnythingByDefault()
        {
            RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria();
            MethodInfo method = typeof(TestObject).GetMethod("OnClick");

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

            Assert.IsFalse(criteria.IsSatisfied(method));
        }
Example #3
0
        public void IsNotSatisfiedWithNull()
        {
            RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria("OnClick");

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