I am a Isolate novice, having some trouble with faking a private method that takes an argument. Any help with this would be appreciated.
Method to be faked :
private void MethodToBeCalled(Type t)
// implementation here
This is what I have tried, please tell me if I need to bury my head in the sand or am on the right track...
Object o = Isolate.Fake.Instance<Class1>();
Isolate.NonPublic.WhenCalled((Class1) o, "MethodToBeCalled");
Isolate.Verify.NonPublic.WasCalled((Class1) o, "MethodToBeCalled");
This test fails, and the reason given is that the method was not called.