Ejemplo n.º 1
0
        protected override Expression <Action> GetActionInternal(BinaryExpression binaryExpression, string lambda)
        {
            if (binaryExpression.Left.Type.IsNot <string>() && binaryExpression.Left.Type.IsEnumerableType())
            {
                return(AssertBuilder.GetCollectionEquals(binaryExpression.Right, binaryExpression.Left, lambda));
            }

            return(AssertBuilder.GetAreEqualAction(binaryExpression.Right, binaryExpression.Left, lambda));
        }