public void Reflex_GetPropertiesNameAndValueWithAttributes_object_sinAtributos_ArrayType_ret_null() { // Prepara ClasePruebaSinAtributos objeto = new ClasePruebaSinAtributos { FieldBool = true, FieldDT = DateTime.MinValue, FieldInt = 0, FieldStr = string.Empty }; // Ejecuta Dictionary <string, object> dicProperties = Reflex.GetPropertiesNameAndValueWithAttributes(objeto, typeof(FieldAttribute)); // Comprueba Assert.IsNull(dicProperties); }
public void Reflex_GetPropertiesInfoWithAttributes_object_sinAtributos_ArrayType_ret_null() { // Prepara ClasePruebaSinAtributos objeto = new ClasePruebaSinAtributos { FieldBool = true, FieldDT = DateTime.MinValue, FieldInt = 0, FieldStr = string.Empty }; // Ejecuta List <PropertyInfo> pis = Reflex.GetPropertiesInfoWithAttributes(objeto, typeof(FieldAttribute)); // Comprueba Assert.IsNull(pis); }