public void CustomFormatterNodeInitTest()
 {
     CustomFormatterData data = new CustomFormatterData();
     CustomFormatterNode node = new CustomFormatterNode(data);
     GeneratedApplicationNode.Nodes.Add(node);
     Assert.AreSame(data, node.FormatterData);
 }
        public void CustomFormatterDataTest()
        {
            NameValueItem testItem = new NameValueItem("TEST", "VALUE");
            string name = "testName";
            string type = "testType";

            CustomFormatterData data = new CustomFormatterData();
            data.Attributes.Add(testItem);
            data.TypeName = type;
            data.Name = name;

            CustomFormatterNode node = new CustomFormatterNode(data);
            GeneratedApplicationNode.Nodes.Add(node);
            CustomFormatterData nodeData = (CustomFormatterData) node.FormatterData;

            Assert.AreEqual(testItem, nodeData.Attributes[0]);
            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(type, nodeData.TypeName);
        }
        public void CustomFormatterNodeTest()
        {
            NameValueItem testItem = new NameValueItem("TEST", "VALUE");
            string name = "testName";
            string type = "testType";

            CustomFormatterNode node = new CustomFormatterNode();
            GeneratedApplicationNode.Nodes.Add(node);
            node.Name = name;
            node.TypeName = type;
            node.Attributes.Add(testItem);

            Assert.AreEqual(name, node.Name);
            Assert.AreEqual(type, node.TypeName);
            Assert.AreEqual(testItem, node.Attributes[0]);
            Assert.AreEqual(1, node.Attributes.Count);
        }