Hi -
I need to fake a static contractor type.
I added the following to my test class :
[ClassInitialize]
public static void InitClass(TestContext tc)
{
//// fake icfc element creation
Isolate.Fake.StaticConstructor(typeof(Factory));
Isolate.Fake.StaticMethods(typeof(Factory), Members.ReturnRecursiveFakes);
}
i have 2 test methods which uses this fake but is seems that it apply only for thr first one, the second one actually invokes the static ctor for some reason and fails.
i'm using typemock version 6.0.10.
can anyone can explain why is it behave like that ?
Itay.