Tips for Testable code and for testing legacy code

My blog has moved. You can view this post at the following address: http://www.osherove.com/blog/2007/6/10/tips-for-testable-code-and-for-testing-legacy-code.html
Published Sunday, June 10, 2007 4:09 PM by RoyOsherove

Comments

Thursday, June 28, 2007 12:57 PM by Mark Leighton Fisher

# re: Tips for Testable code and for testing legacy code

Maybe I'm imagining here, but "interfaces everywhere" seems like a Code Smell to me. One way to help preserve security while not forcing every class to have an interface would be to allow mocking of arbitrary classes as long as the mocking class is in the same assembly as the class being mocked. Of course, there is alwalways ILMerge...