views:

98

answers:

2

I'm working with VSTS 2005, and while the unit testing tools are fairly straightforward, I'm left wondering if there is any sort of support for mocking. I'd hate to have to do the mocking manually, because that leads to a lot of (mostly generated) boilerplate code.

I have an edict from The Powers That Be, that a third-party mocking library is not an option. I'm pretty sure that means I'm going to be mocking by hand, but one can always hope. :)

+2  A: 

No, there is no support. You would need to use 3rd party tools for this (oops guess you can't) I mean you will need to do it by hand...sorry to be the bearer of bad news

Alex
Mocking by hand it is, then. Damn. :(
Rytmis
+1  A: 
tvanfosson
The question is not of compromising production code, it's of consistency throughout the organization, which is necessary, for certain Good and Valid Reasons. The recommended approach is to write stubs by hand, but I'm going to make the case that unless the interfaces are small, it gets tedious fast.
Rytmis