I'm starting with a new project which will involve using some old-styled 3rd Party dlls with no interfaces and lots of static classes/methods. I want to follow TDD but it will come with obvious obstacles.
I can either:
- Use Microsoft Fakes framework which pre-generates stubs/shims which I can use to perform unit testing. MSFakes doesn't have extensive list of assertion helpers like other mocking frameworks have got but that could be worked around.
OR
- I can write Wrappers against the 3rd Party classes and use them across all of my code base and Test classes with any standard mocking framework like RhinoMocks/NMock...
So basically should I use pre-generated design time MSFakes shims OR custom hand coded wrappers with any on-the-fly mocking framework?
Aucun commentaire:
Enregistrer un commentaire