martes, 15 de septiembre de 2015

Test Equality


Entities can not be compared as value objects
IEqualityComparer use it to compare entities in tests:

Helper method that sets a value and return the entity itself with the same values. It helps to create expectations when only one property changes

Resemblance
Create subclass which implements equals

Likeness
 



No hay comentarios:

Publicar un comentario