I set up these two mocks:
var intReader = Isolate.Fake.Instance<IRecordsReader>();
Isolate.WhenCalled(() => intReader.GetDbType()).WillReturn("Integer");
var ntextReader = Isolate.Fake.Instance<IRecordsReader>();
Isolate.WhenCalled(() => ntextReader.GetDbType()).WillReturn("Ntext");
But when I run the test I get this error:
TypeMock.VerifyException:
TypeMock Verification: Call to IRecordsReader.GetDbType() Parameter: 1
passed object [Mock0000IRecordsReader]
is not the same instance as expected [Mock0000IRecordsReader].
As stated this worked fine in 5.2.1 but I finally got around to upgrading to 5.2.3 and now the test doesn't work.
Any idea why?