We were using 3.6.0. Upgraded to 3.7.1, now this test fails:
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
// mock the things that require a valid connection string
SqlBackingStore sMock = new SqlBackingStore(null);
recorder.CallOriginal();
SqlDependency.Start(null);
sMock.SetUpChangeNotification();
}
I get the error below from TM, which faults the last line. The method SetupChangeNotification() return void. What is the problem here?
*** Mocked return value of SqlBackingStore.SetUpChangeNotification() is unknown, use recorder.Return().
*** Note: Cannot mock types from mscorlib assembly.
TypeMock.TypeMockException
Message:
*** Mocked return value of SqlBackingStore.SetUpChangeNotification() is unknown, use recorder.Return().
*** Note: Cannot mock types from mscorlib assembly.
Source: TypeMock
StackTrace:
at TypeMock.RecordExpectations.Dispose()