chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I am running visual studio 2005 with typemock isolator 4.2.4. i am getting this error.

VSTestHost.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

i think the line that is crashing vs is below.

<TestInitialize()> _
Public Sub Init()
...
dbConnectionMock = MockManager.MockObject(GetType(DbConnection))
End Sub

any ideas how to fix this.
thanks in advance.
asked by mzelinski (2.2k points)

1 Answer

0 votes
found the fix.
needed to add

<TestCleanup()> _
Public Sub Dispose()
MockManager.Verify()
End Sub
answered by mzelinski (2.2k points)
...