Exemplo n.º 1
0
        public void CreateNodeWithIntegerValue()
        {
            ConstantNode node = new ConstantNode(42);

            Assert.IsNotNull(node.Value);
            Assert.AreEqual(42, node.Value);
            Assert.AreSame(TypeInfo.Int, node.TypeInfo);

            node.RegisterInContext(null);
            node.CheckType(null);
            Assert.AreSame(TypeInfo.Int, node.TypeInfo);
        }