Esempio n. 1
0
        public void GetExpression()
        {
            ConstantNode node = new ConstantNode(42);

            var expr = node.GetExpression();

            Assert.IsNotNull(expr);
            Assert.IsInstanceOfType(expr, typeof(ConstantExpression));
            Assert.AreEqual(42, ((ConstantExpression)expr).Value);
        }