Ejemplo n.º 1
0
        public bool IsMatch(FailedAssertion failedAssertion)
        {
            var expression = failedAssertion.Expression;

            return((EqualityPattern.IsEqualityComparison(expression) ||
                    LessThanOrGreaterThanPattern.IsNumericalComparison(expression)) &&
                   expression is BinaryExpression binaryExpression &&
                   IsLengthAccess(binaryExpression.Left));
        }
Ejemplo n.º 2
0
 public bool IsMatch(FailedAssertion failedAssertion)
 {
     return(EqualityPattern.IsEqualityComparison(failedAssertion.Expression) ||
            LessThanOrGreaterThanPattern.IsNumericalComparison(failedAssertion.Expression));
 }