Exemplo n.º 1
0
        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);
    }
Exemplo n.º 3
0
        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);
        }