public void CustomSinkNodeTest()
        {
            NameValueItem item = new NameValueItem("TEST", "VALUE");
            string name = "testName";
            string type = "testType";

            CustomSinkNode node = new CustomSinkNode();
            GeneratedApplicationNode.Nodes.Add(node);
            node.Attributes.Add(item);
            node.Name = name;
            node.TypeName = type;

            Assert.AreEqual(item, node.Attributes[0]);
            Assert.AreEqual(name, node.Name);
            Assert.AreEqual(type, node.TypeName);

            Assert.AreEqual(1, node.Attributes.Count);
        }
        public void DestinationsNodeTest()
        {
            FormatterNode formatter = new TextFormatterNode();
            SinkNode sink = new CustomSinkNode();

            DestinationNode node = new DestinationNode();
            GeneratedApplicationNode.Nodes.Add(node);
            node.Formatter = formatter;
            node.Sink = sink;

            Assert.AreEqual(formatter, node.Formatter);
            Assert.AreEqual(sink, node.Sink);
        }
        public void CustomSinkDataTest()
        {
            NameValueItem item = new NameValueItem("TEST", "VALUE");
            string name = "testName";
            string type = "testType";

            CustomSinkData data = new CustomSinkData();
            data.Attributes.Add(item);
            data.Name = name;
            data.TypeName = type;

            CustomSinkNode node = new CustomSinkNode(data);
            GeneratedApplicationNode.Nodes.Add(node);
            CustomSinkData nodeData = (CustomSinkData) node.SinkData;

            Assert.AreEqual(item, nodeData.Attributes[0]);
            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(type, nodeData.TypeName);
        }