Hi
In my solution I have a range of green unit tests (none of the are using TypeMock). When I add a new unit test using TypeMock (I am evaluating TypeMock at the moment) and run all test (Ctrl+R, A) most of my other unit test (that runs after my new unit test) fails!??
The new unit test I am adding is by no means finish yet - but I get the error by just having this one line in my test:
<TestMethod> _
<Isolated> _
Public Sub SaveSiteToVP2009Test()
' Arrange
' -------
Dim fakeDB = FakeInstance(Of DataAccessAdapter)()
end sub
The errors I get in the following unit tests are releated to "DataAccessAdapter". It seems that this line throws a "Object reference not set to an instance of an object" exception:
Dim _adapter As New DataAccessAdapter()
If I change my new unit test to this (comment/removing TypeMock stuff):
<TestMethod> _
<Isolated> _
Public Sub SaveSiteToVP2009Test()
' Arrange
' -------
' Dim fakeDB = FakeInstance(Of DataAccessAdapter)()
end sub
My other unit test goes green (runs fine).
What am I doing wrong?!
And one other thing: If I finish my new unit test and run all the test (including my new TypeMocked unit test)
one at the time everything is green (fine).