Issues in breaking dependencies for unit testing

this blog has moved to http://osherove.com/blog
Published Tuesday, August 23, 2005 6:33 PM by RoyOsherove
Filed under:

Comments

Thursday, August 25, 2005 1:54 PM by Roy Osherove

# re: Issues in breaking dependencies for unit testing

Eli:
Yes, TypeMock is kinda cool in the easy with which you are able to break things up, but it still can cause trouble. Even with TypeMock.NET - your tests setups might still look horribly unreadable and long if you have many dependencies to break. Sometime just because you have a tool means you have an execuse to write not only slopy code but sloppy tests as well (breaking 10 dependencies before each test is very hard to read and understand rather than seeing two-three lines of code stating that some method is overriden.
Second of all - not all languages have the benefit of using TypeMock.NET - they *have* to resort to more manual means of doing things.