private static TreeNode Generate()
        {
            TreeNode t = new Imaginary.ImaginaryNode();

            t.attributes.Add(new AttrItem("a", "1", t));
            t.attributes.Add(new AttrItem("c", "2", t));
            return(t);
        }
Example #2
0
        public void Add1()
        {
            var n = new Imaginary.ImaginaryNode();

            n.attributes.Add(new AttrItem("A", "1", n));
            n.FixAttributesList();
            Assert.AreEqual("A", n.attributes[0].AttrCap);
            Assert.AreEqual("1", n.attributes[0].attrInput);
            Assert.AreEqual("C", n.attributes[1].AttrCap);
            Assert.AreEqual("", n.attributes[1].attrInput);
        }