public void TestPropertyValueAttributeMapperViaExpression()
        {
            // Prepare
            var attributes = GetPropertyValueAttributes();

            // Act
            PropertyValueAttributeMapper.Add <PropertyValueAttributeClass>(e => e.PropertyString,
                                                                           attributes);
            var actual = PropertyValueAttributeMapper.Get <PropertyValueAttributeClass>(e => e.PropertyString);

            // Assert
            Assert.AreEqual(attributes, actual);
        }
        public void TestPropertyValueAttributeMapperViaPropertyName()
        {
            // Prepare
            var propertyName = "PropertyString";
            var attributes   = GetPropertyValueAttributes();

            // Act
            PropertyValueAttributeMapper.Add <PropertyValueAttributeClass>(propertyName,
                                                                           attributes);
            var actual = PropertyValueAttributeMapper.Get <PropertyValueAttributeClass>(propertyName);

            // Assert
            Assert.AreEqual(attributes, actual);
        }
        public void TestPropertyValueAttributeMapperViaField()
        {
            // Prepare
            var field      = new Field("PropertyString");
            var attributes = GetPropertyValueAttributes();

            // Act
            PropertyValueAttributeMapper.Add <PropertyValueAttributeClass>(field,
                                                                           attributes);
            var actual = PropertyValueAttributeMapper.Get <PropertyValueAttributeClass>(field);

            // Assert
            Assert.AreEqual(attributes, actual);
        }
        public void TestPropertyValueAttributeMapperViaPropertyInfo()
        {
            // Prepare
            var classProperty = PropertyCache.Get <PropertyValueAttributeClass>("PropertyString", true);
            var attributes    = GetPropertyValueAttributes();

            // Act
            PropertyValueAttributeMapper.Add(classProperty.PropertyInfo,
                                             attributes);
            var actual = PropertyValueAttributeMapper.Get(classProperty.PropertyInfo);

            // Assert
            Assert.AreEqual(attributes, actual);
        }