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

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

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

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