public void GetAttributeDisplayNameNonExistentProperty() { var feature = new TestFeature(); feature.Attributes = new DictionaryFeatureAttributeCollection(); feature.Attributes["Jan"] = 3; var displayName = FeatureAttributeAccessorHelper.GetAttributeDisplayName(feature, "Piet"); }
public void GetAttributeDisplayName() { var displayName = FeatureAttributeAccessorHelper.GetAttributeDisplayName(typeof(TestFeature), "Other"); Assert.AreEqual("Kees", displayName); var displayNameInstance = FeatureAttributeAccessorHelper.GetAttributeDisplayName(new TestFeature(), "Other"); Assert.AreEqual("Kees", displayName); }
public void GetAttributeDisplayNameInAttributeCollection() { var feature = new TestFeature(); feature.Attributes = new DictionaryFeatureAttributeCollection(); feature.Attributes["Jan"] = 3; var displayName = FeatureAttributeAccessorHelper.GetAttributeDisplayName(feature, "Jan"); Assert.AreEqual("Jan", displayName); }
public void GetAttributeDisplayNameThrowExceptionForNonExistingProperties() { var displayName = FeatureAttributeAccessorHelper.GetAttributeDisplayName(typeof(TestFeature), "Blabla"); }