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()); }
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()); }
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()); }