public void CanCreateTagAttributeMatchingRuleNodeFromData() { TagAttributeMatchingRuleData ruleData = new TagAttributeMatchingRuleData(); ruleData.Name = "matching rule name"; ruleData.Match = "TagToMatch"; ruleData.IgnoreCase = false; TagAttributeMatchingRuleNode ruleNode = new TagAttributeMatchingRuleNode(ruleData); Assert.AreEqual(ruleData.Name, ruleNode.Name); Assert.AreEqual(ruleData.Match, ruleNode.Match); Assert.AreEqual(ruleData.IgnoreCase, ruleNode.IgnoreCase); }
public void CanCreateRuleDataFromTagAttributeMatchingRuleNode() { TagAttributeMatchingRuleNode ruleNode = new TagAttributeMatchingRuleNode(); ruleNode.Name = "matching rule name"; ruleNode.Match = "TagToMatch"; ruleNode.IgnoreCase = false; TagAttributeMatchingRuleData ruleData = ruleNode.GetConfigurationData() as TagAttributeMatchingRuleData; Assert.IsNotNull(ruleData); Assert.AreEqual(ruleNode.Name, ruleData.Name); Assert.AreEqual(ruleNode.Match, ruleData.Match); Assert.AreEqual(ruleNode.IgnoreCase, ruleData.IgnoreCase); }
public void TagAttributeMatchingRuleNodeHasProperDefaultName() { TagAttributeMatchingRuleNode ruleNode = new TagAttributeMatchingRuleNode(); Assert.AreEqual("Tag Attribute Matching Rule", ruleNode.Name); }