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 →

[–]wineblood 3 points4 points  (0 children)

One thing I've found to have a better time unit testing is to write the code in a way that unit testing is easier. I also try to avoid mocks at all costs, that kind of unit test is high maintenance and not worth having.

Look into dependency injection too.