Hi there.
Appologies for the delay, been off work with a cold so I haven't been checking up on the forums.
I will find out tomorrow the exact Visual Studio version number, but I got the error whilst using Visual Studio 2008.
I had the error whilst running the unit test both in debug stepping mode (putting a breakpoint on the test and running line by line) and by just doing a 'Run Selection' on the test method and letting the unit test run normally.
Also, I found that just before I got the second example working, whilst I was experimenting with the code, I did get a lot of crashes where VSTestHost.exe had to be terminated. Once I got the test method syntax correct, the VSTestHost.exe errors vanished.
(I think I got the error because I used:
recorder.Return(mockSPSite)
rather then
recorder.Return(mockSPSite.MockedInstance)
so it's my fault rather then any TypeMock code.)
I did a Google search on this just now and found this:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=173802&SiteID=1
This might be helpful for other customers who have experienced crashes whilst running unit test using the MS Test envirnoment.
Cheers.
Jas.