public void CreateExpression_OneChildExpressionAndMinusOperator_Negate()
        {
            var operand = Expression.Constant(10.0);
            var result = Expression.Negate(operand);

            var op = MockRepository.GenerateStub<IUnaryOperator>();
            op.Stub(o => o.CreateExpression(operand)).Return(result);
            var children = new Expression[] { operand };
            var term = new UnaryOperatorTerm(op);

            Assert.That(term.CreateExpression(children), Is.SameAs(result));
        }
 public void Operator_SomeOperator_AsSame()
 {
     var op = MockRepository.GenerateStub<IUnaryOperator>();
     var term = new UnaryOperatorTerm(op);
     Assert.That(term.Operator, Is.SameAs(op));
 }