I have multiple test methods that depend on the same Mole redirection, and in order to prevent duplication, I've placed the redirection code in my ClassInit Method:
[ClassInitialize]
public static void ClassInit(TestContext context)
{
MBase.AllInstances.BaseMethod = b => "Mole";
}
However, when the test methods are run together the redirection only happens once. Why doesn't the redirection occur for each test method?