public void GetResolvedFunc()
        {
            var expectedResult = Expression.Lambda(Expression.Add(_func.Parameters[0], SourceReference), _func.Parameters[0]);

            var result = _nodeWithResultSelector.GetResolvedFunc(ClauseGenerationContext);

            ExpressionTreeComparer.CheckAreEqualTrees(expectedResult, result);
        }
        public void Apply_WithoutResultSelector()
        {
            var result = _nodeWithoutResultSelector.Apply(QueryModel, ClauseGenerationContext);

            Assert.That(result, Is.SameAs(QueryModel));

            var resultOperator = (AggregateFromSeedResultOperator)QueryModel.ResultOperators[0];

            Assert.That(resultOperator.Seed, Is.SameAs(_seed));
            Assert.That(resultOperator.Func, Is.EqualTo(_nodeWithoutResultSelector.GetResolvedFunc(ClauseGenerationContext)));
            Assert.That(resultOperator.OptionalResultSelector, Is.Null);
        }