Debugging tests should be exactly the same as debugging your code - put a break point and run the test in debug (in MSTest ctrl+R, ctrl+T).
Dror Helper
2010-05-05 07:18:49
Debugging tests should be exactly the same as debugging your code - put a break point and run the test in debug (in MSTest ctrl+R, ctrl+T).
Depending on you testrunner (Nunit or VS) you start the test in debug mode (VS) or you start the testrunner and attach to the proces of the testrunner (nunit)
Another approach would be to create unit tests that act as breakpoints. It would require refactoring the SUT.