It would be nice if the only TestFixture classes that were constructed were the ones being run. I when running a single test case from a single test fixture, It is constructing other unrelated TestFixtures. This is undesirable because it makes a code coverage tool report additional hits if you have code in the constructors that is being run. Even if you recommend not putting anything in the constructor, and even if I do manage to reorganize my code to not have anything in the constructor, I still may run into another situation where it is much easier or necessary to put code in the constructor of a TestFixture class.
Log in to post a comment.