public void CustomHandlerNodeDefaults()
 {
     CustomHandlerNode customHandler = new CustomHandlerNode();
     
     Assert.AreEqual(0, customHandler.Attributes.Count);
     Assert.AreEqual("Custom Handler", customHandler.Name);
     Assert.IsNull(customHandler.Type);
 }
        public void CustomHandlerNodeDataTest()
        {
            string attributeKey = "attKey";
            string attributeValue = "attValue";
            string name = "some name";
            Type type = typeof(WrapHandlerNode);

            CustomHandlerData customHandlerData = new CustomHandlerData();
            customHandlerData.Attributes.Add(attributeKey, attributeValue);
            customHandlerData.Name = name;
            customHandlerData.Type = type;

            CustomHandlerNode customHandlerNode = new CustomHandlerNode(customHandlerData);

            CustomHandlerData nodeData = (CustomHandlerData)customHandlerNode.ExceptionHandlerData;
            Assert.AreEqual(name, nodeData.Name);
            Assert.AreEqual(type, nodeData.Type);
            Assert.AreEqual(attributeKey, nodeData.Attributes.AllKeys[0]);
            Assert.AreEqual(attributeValue, nodeData.Attributes[attributeKey]);
        }
        public void CustomHandlerDataTest()
        {
            string attributeKey = "attKey";
            string attributeValue = "attValue";
            string name = "some name";
            Type type = typeof(WrapHandlerNode);

            CustomHandlerData data = new CustomHandlerData();
            data.Name = name;
            data.Type = type;

            data.Attributes.Add(attributeKey, attributeValue);

            CustomHandlerNode node = new CustomHandlerNode(data);

            Assert.AreEqual(name, node.Name);
            Assert.AreEqual(type, node.Type);
            Assert.AreEqual(attributeKey, node.Attributes[0].Key);
            Assert.AreEqual(attributeValue, node.Attributes[0].Value);
        }