public void CustomizationSkippedWhenNoneConvention()
 {
     TestPropertyDescriptor property = CreateTestProperty("foo");
     IPropertyDescriptorCustomization customization = new JsonMemberNamingConventionAttribute();
     customization.Apply(property);
     Assert.IsNull(property.CustomizedName);
 }
Пример #2
0
        public void CustomizationSkippedWhenNoneConvention()
        {
            var property = CreateTestProperty("foo");
            IPropertyDescriptorCustomization customization = new JsonMemberNamingConventionAttribute();

            customization.Apply(property);
            Assert.IsNull(property.CustomizedName);
        }
 public void CannotApplyToNullPropertyDescriptor()
 {
     IPropertyDescriptorCustomization customization = new JsonMemberNamingConventionAttribute();
     customization.Apply(null);
 }
Пример #4
0
        public void CannotApplyToNullPropertyDescriptor()
        {
            IPropertyDescriptorCustomization customization = new JsonMemberNamingConventionAttribute();

            customization.Apply(null);
        }