Esempio n. 1
0
        public void TestPropertyValueAttributeResolverCollisionsWithIncludeMappingsFalseViaPropertyInfo()
        {
            // Prepare
            var classProperty = PropertyCache.Get <PropertyValueAttributeClass>("PropertyDecimal", true);

            // Act
            var actual = new PropertyValueAttributeResolver().Resolve(classProperty.PropertyInfo, false);

            // Assert
            Assert.AreEqual(7, actual.Count());
        }
Esempio n. 2
0
        public void TestPropertyValueAttributeResolverWithAttributesViaPropertyInfo()
        {
            // Prepare
            var classProperty = PropertyCache.Get <PropertyValueAttributeClass>("PropertyInt", true);

            // Act
            var actual = new PropertyValueAttributeResolver().Resolve(classProperty.PropertyInfo);

            // Assert
            Assert.AreEqual(2, actual.Count());
        }
Esempio n. 3
0
        public void TestPropertyValueAttributeResolverWithMappedAttributesAndWithIncludeMappingsFalseViaPropertyInfo()
        {
            // Prepare
            var classProperty = PropertyCache.Get <PropertyValueAttributeClass>("PropertyString", true);

            // Act
            var actual = new PropertyValueAttributeResolver().Resolve(classProperty.PropertyInfo, false);

            // Assert
            Assert.AreEqual(0, actual.Count());
        }