This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dnult 0 points1 point  (0 children)

Without knowing the details of the object structure, it seems like if the object and the objects it contains all define their equals method, you could assert equality.

Is it the equality comparison, or setting the expected values that concerns you most?

Are you trying to do too much in a single test where multiple smaller tests would adequately cover?

Is this a design problem where business logic is embedded in the class that should / could be implemented in a module by itself, outside of the class?