コード例 #1
0
        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);
        }
コード例 #2
0
 public void GetAttributeDisplayNameThrowExceptionForNonExistingProperties()
 {
     var displayName = FeatureAttributeAccessorHelper.GetPropertyDisplayName(typeof(TestFeature), "Blabla");
 }