public void CanCreateCustomAttributeMatchingRuleNodeFromData() { CustomAttributeMatchingRuleData ruleData = new CustomAttributeMatchingRuleData(); ruleData.Name = "CustomAttributeRuleName"; ruleData.AttributeTypeName = "attributeType"; CustomAttributeMatchingRuleNode ruleNode = new CustomAttributeMatchingRuleNode(ruleData); Assert.AreEqual(ruleData.Name, ruleNode.Name); Assert.AreEqual(ruleData.AttributeTypeName, ruleNode.AttributeType); }
public void CanCreateRuleDataFromCustomAttributeMatchingRuleNode() { CustomAttributeMatchingRuleNode ruleNode = new CustomAttributeMatchingRuleNode(); ruleNode.Name = "RuleName"; ruleNode.AttributeType = "attributeType"; CustomAttributeMatchingRuleData ruleData = ruleNode.GetConfigurationData() as CustomAttributeMatchingRuleData; Assert.IsNotNull(ruleData); Assert.AreEqual(ruleNode.Name, ruleData.Name); Assert.AreEqual(ruleNode.AttributeType, ruleData.AttributeTypeName); }
public void CustomAttributeMatchingRuleNodeHasProperDefaultName() { CustomAttributeMatchingRuleNode ruleNode = new CustomAttributeMatchingRuleNode(); Assert.AreEqual("Custom Attribute Matching Rule", ruleNode.Name); }