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 IsNotSatisfiedWithNull() { RegularExpressionMethodNameCriteria criteria = new RegularExpressionMethodNameCriteria("OnClick"); Assert.IsFalse(criteria.IsSatisfied(null)); }