I'm getting this error when multiple tests in a testfixture run.
*** Static constructor for class Roller cannot be faked as it has already
at g4.a(Type A_0)
at g4.b(Type A_0)
If I run them one by one it works just fine.
private static Roller GetMockedRoller()
var mockedRoller =
Which I understand why it might be happening, so I moved
Isolate.Fake.StaticConstructor<Roller>(); to [TestFixtureSetUp] but when I
do this, it doesn't work expected for the second test, this time Static
constructors are failing in the second test.
How can I solve this problem? Is it a bug, or am I missing something?