Hi,
Yes you can do that, in the example that you gave you can fake only the instance methods of MyClass and the static field of s_DummyClass will not be faked.
[TestMethod]
public void Test()
{
// Isolate.Fake.Instance without parameters is like using Members.ReturnRecursiveFakes
var fake = Isolate.Fake.Instance<MyClass>();
}
Another option is to fake MyClass but use the Members.CallOriginal default
and fake explicitly the methods you are interested in.
[TestMethod]
public void Test()
{
var fake = Isolate.Fake.Instance<MyClass>(Members.CallOriginal);
Isolate.WhenCalled(() => fake.GetI()).WillReturn(5);
}
Please let me know if it helps.