public void Reflex_PropertyHasAttribute_object_str_Type_ret_bool() { // Prepara ClasePruebaKeyField objeto = new ClasePruebaKeyField(); // Ejecuta bool hasAttributeKey = Reflex.PropertyHasAttribute(objeto, "FieldStr", typeof(KeyAttribute)); bool hasAttributeField = Reflex.PropertyHasAttribute(objeto, "FieldStr", typeof(FieldAttribute)); // Comprueba Assert.IsTrue(hasAttributeKey); Assert.IsFalse(hasAttributeField); }