Esempio n. 1
0
        public void CreateAssignmentNode()
        {
            NameNode     target = new NameNode("foo");
            ConstantNode expr   = new ConstantNode(42);

            AssignmentNode node = new AssignmentNode(target, expr);

            node.RegisterInContext(null);

            Assert.AreSame(target, node.Target);
            Assert.AreSame(expr, node.Expression);
            Assert.AreSame(TypeInfo.Int, node.TypeInfo);
        }