public void Resolve_PassesExpressionToSource ()
    {
      var sourceMock = MockRepository.GenerateMock<IExpressionNode> ();
      var node = new IntersectExpressionNode (CreateParseInfo (sourceMock),_source2);
      var expression = ExpressionHelper.CreateLambdaExpression ();
      var parameter = ExpressionHelper.CreateParameterExpression ();
      var expectedResult = ExpressionHelper.CreateExpression ();
      sourceMock.Expect (mock => mock.Resolve (parameter, expression, ClauseGenerationContext)).Return (expectedResult);

      var result = node.Resolve (parameter, expression, ClauseGenerationContext);

      sourceMock.VerifyAllExpectations ();
      Assert.That (result, Is.SameAs (expectedResult));
    }
 public override void SetUp ()
 {
   base.SetUp ();
   _source2 = Expression.Constant (new[] { "test1", "test2" });
   _node = new IntersectExpressionNode (CreateParseInfo (), _source2);
 }