예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void CustomAttributeMatchingRuleNodeHasProperDefaultName()
        {
            CustomAttributeMatchingRuleNode ruleNode = new CustomAttributeMatchingRuleNode();

            Assert.AreEqual("Custom Attribute Matching Rule", ruleNode.Name);
        }