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