public static void CheckAreEqualTrees (Expression expectedTree, Expression actualTree)
    {
      ArgumentUtility.CheckNotNull ("expectedTree", expectedTree);
      ArgumentUtility.CheckNotNull ("actualTree", actualTree);

      var comparer = new ExpressionTreeComparer (
          expectedTree.BuildString(),
          actualTree.BuildString());
      comparer.CheckAreEqualNodes (expectedTree, actualTree);
    }
    public static void CheckAreEqualTrees (Expression expectedTree, Expression actualTree)
    {
      ArgumentUtility.CheckNotNull ("expectedTree", expectedTree);
      ArgumentUtility.CheckNotNull ("actualTree", actualTree);

      var comparer = new ExpressionTreeComparer (
          FormattingExpressionTreeVisitor.Format (expectedTree),
          FormattingExpressionTreeVisitor.Format (actualTree));
      comparer.CheckAreEqualNodes (expectedTree, actualTree);
    }
Exemple #3
0
        public static void CheckAreEqualTrees(Expression expectedTree, Expression actualTree)
        {
            ArgumentUtility.CheckNotNull("expectedTree", expectedTree);
            ArgumentUtility.CheckNotNull("actualTree", actualTree);

            var comparer = new ExpressionTreeComparer(
                expectedTree.BuildString(),
                actualTree.BuildString());

            comparer.CheckAreEqualNodes(expectedTree, actualTree);
        }
        public static void CheckAreEqualTrees(Expression expectedTree, Expression actualTree)
        {
            ArgumentUtility.CheckNotNull("expectedTree", expectedTree);
            ArgumentUtility.CheckNotNull("actualTree", actualTree);

            var comparer = new ExpressionTreeComparer(
                FormattingExpressionTreeVisitor.Format(expectedTree),
                FormattingExpressionTreeVisitor.Format(actualTree));

            comparer.CheckAreEqualNodes(expectedTree, actualTree);
        }