Hi,
I checked it out and I can confirm it is a bug.
Until we'll fix it try to use the following workaround:
[TestMethod, Isolated]
public void TestMethod1()
{
var fake = Isolate.Fake.Instance<SystemLogger>(Members.CallOriginal);
Isolate.WhenCalled(() => fake.Write(null)).IgnoreCall();
Isolate.Swap.NextInstance<SystemLogger>().With(fake);
var d = new DummyClass();
d.DoSomething1();
}
[TestMethod, Isolated]
public void TestMethod2()
{
var fake = Isolate.Fake.Instance<SystemLogger>(Members.CallOriginal);
Isolate.WhenCalled(() => fake.Write(null)).IgnoreCall();
Isolate.Swap.NextInstance<SystemLogger>().With(fake);
var d = new DummyClass();
d.DoSomething2();
}
I assume from the code you posted that you want to ignore the call to the Write method and that's what the code above will do.
Please let me know if the workaround helps you.