public void GetAttributeDisplayName() { var displayName = FeatureAttributeAccessorHelper.GetPropertyDisplayName(typeof(TestFeature), "Other"); Assert.AreEqual("Kees", displayName); var displayNameInstance = FeatureAttributeAccessorHelper.GetAttributeDisplayName(new TestFeature(), "Other"); Assert.AreEqual("Kees", displayNameInstance); }
public void GetAttributeDisplayNameThrowExceptionForNonExistingProperties() { var displayName = FeatureAttributeAccessorHelper.GetPropertyDisplayName(typeof(TestFeature), "Blabla"); }