public static void CheckAreEqualTrees(Expression expectedTree, Expression actualTree) { ArgumentUtility.CheckNotNull("expectedTree", expectedTree); ArgumentUtility.CheckNotNull("actualTree", actualTree); var comparer = new SqlExpressionTreeComparer(expectedTree.ToString(), actualTree.ToString()); comparer.CheckAreEqualNodes(expectedTree, actualTree); }
public static void CheckAreEqualTrees (Expression expectedTree, Expression actualTree) { ArgumentUtility.CheckNotNull ("expectedTree", expectedTree); ArgumentUtility.CheckNotNull ("actualTree", actualTree); var comparer = new SqlExpressionTreeComparer ( FormattingExpressionTreeVisitor.Format (expectedTree), FormattingExpressionTreeVisitor.Format (actualTree)); comparer.CheckAreEqualNodes (expectedTree, actualTree); }
public static void CheckAreEqualTrees(Expression expectedTree, Expression actualTree) { ArgumentUtility.CheckNotNull("expectedTree", expectedTree); ArgumentUtility.CheckNotNull("actualTree", actualTree); var comparer = new SqlExpressionTreeComparer( FormattingExpressionTreeVisitor.Format(expectedTree), FormattingExpressionTreeVisitor.Format(actualTree)); comparer.CheckAreEqualNodes(expectedTree, actualTree); }