public bool SatisfiedBy(MethodInfo method)
 {
     try
     {
         return(_requirement.SatisfiedBy(method));
     }
     catch (UnableToCheckRequirementException)
     {
         return(true);
     }
 }
示例#2
0
 public static void ShouldSatisfy(this MethodInfo methodInfo, IMethodInfoRequirement requirement)
 {
     Assert.True(requirement.SatisfiedBy(methodInfo), $"{methodInfo} don't satisfied requirement: {requirement}, but it should.");
 }
示例#3
0
 public static void ShouldNotSatisfy(this MethodInfo methodInfo, IMethodInfoRequirement requirement)
 {
     Assert.False(requirement.SatisfiedBy(methodInfo), $"{methodInfo} satisfied requirement: {requirement}, but it shouldn't.");
 }