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);
        }
 /// <summary>
 /// Creates node with specified configuration data.
 /// </summary>
 /// <param name="data">Configuration data.</param>
 public CustomFormatterNode(CustomFormatterData data)
     : base(data)
 {
     this.customFormatterData = data;
 }