Hi,
I am coding some unit tests and wondered, is it in the duty of Typemock to replace paremeters?
For example, I have a method which relies on an object and in this object's constructor are some assemblies to analyze (a string array).
Would I be on the right track to mock the class containing the method and then pass in my own parameters? But this in itself has its own overhead. Would it not be better to swap the the parameters of the actual class being tested? Is this possible?
Finally, I seem to have realised that if I want easily tested code then rather having method-level variables which I want to mock, they should be fields and thus accessible from outside. Constructor set variables should assign to references which are fields. Would you agree with this?
I know this may be a noobish question but I haven't use mocking much.
Thanks