Hi Body,
Perhaps I was making the wrong assumption about the following:
bodie;473 wrote: I am using Moles (from Microsoft Research) to sever the downward dependency when I'm testing the public method that calls the private I already tested. This works well for testing, but NCrunch doesn't seem to know what to do with the test that uses Moles.
?
The way I read this is that your code has some
external dependency (as on another class). Maybe your intend to say that the public method depends on the private method which you already have tested. And you are using Moles to 'reroute' the call to the private method while testing the public method? In the latter case, DI indeed has no benefit to you.
If however you do have an external dependency, then DI can work wonders for you (and an IoC like Unity, NInject, Munq can help).
Remco, regarding possible support for Moles, as posted we do use it for the legacy version, and would truly appreciate NCrunch support.