コード例 #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));
        }