Exemplo n.º 1
0
        public void CreateObjectNode()
        {
            VarNode    varnode = new VarNode("a", null, new ConstantNode(42));
            ObjectNode node    = new ObjectNode("Foo", varnode);

            Assert.AreEqual("Foo", node.Name);
            Assert.IsNotNull(node.Body);
            Assert.AreSame(varnode, node.Body);
            Assert.AreEqual("Foo", node.TypeInfo.Name);
            node.CheckType(null);
            Assert.AreEqual("Foo", node.TypeInfo.Name);
        }