Beispiel #1
0
        public void TestBuildExpressionForUnaryWithRightHandExpression()
        {
            var op = new PlusOperator();

            var expression = op.BuildExpression(
                new Token("+", 1),
                new[]
            {
                null,
                Mock.Of <IExpression>(e => e.Evaluate(It.IsAny <IDictionary <string, object> >()) == (object)null)
            },
                new Context(ExpressiveOptions.None));

            Assert.IsInstanceOfType(expression, typeof(PlusExpression));
        }