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
0 votes
Hi,

Since my upgrade from Typemock 7.0.9.0 to Typemock 7.1.2.0 (VS2010), some unit tests fail with the following exception :
Test method AppFabric.Admin.Service.DataAccess_UnitTests.Helpers.DataConvertersExtensionsTests.DataConvertersExtensions_ToCacheHostConfigurationTest threw exception: 
System.TypeInitializationException: The type initializer for 'fv' threw an exception. ---> System.TypeInitializationException: The type initializer for 'TypeMock.InterceptorsWrapper' threw an exception. ---> TypeMock.TypeMockException: 
*** Typemock Isolator needs to be linked with Coverage Tool to run, to enable do one of the following:
   1. link the Coverage tool through the Typemock Isolator Configuration
   2. run tests via TMockRunner.exe -link
   3. use TypeMockStart tasks for MSBuild or NAnt with Link 
For more information consult the documentation (see Code Coverage with Typemock Isolator topic)


The full stackstrace is :
gn.c()
TypeMock.InterceptorsWrapper.GetInterceptorsAssembly()
TypeMock.InterceptorsWrapper..cctor()
TypeMock.InterceptorsWrapper.GetIsIntercepted()
fv..cctor()
fv.b(Type A_0)
TypeMock.MockManager.a(Type A_0, Constructor A_1, Object[] A_2, Boolean A_3)
TypeMock.MockManager.MockObject[TMockedType](Constructor mockConstructors)
TypeMock.ArrangeActAssert.InstanceFaker`1.e()
TypeMock.ArrangeActAssert.InstanceFaker`1.c()
gx.Instance[T](Members behavior)
AppFabric.Admin.Service.DataAccess_UnitTests.Helpers.DataConvertersExtensionsTests.DataConvertersExtensions_ToCacheHostConfigurationTest() in D:\Workspaces\Codeplex\AppCacheAdminService\Trunk\Service\Tests\AppFabric.Admin.Service.DataAccess_UnitTests\Helpers\DataConvertersExtensionsTest.cs: line 138


In Isolator configuration, I can see that typemock is linked to VS2010 Profilers, so I do not understand why typemock throws this exception.

Have you got an idea or a workaround ?

Best regards,
Matthieu
asked by cdsmklotz (3.1k points)

11 Answers

0 votes
Hi Omar,

Glad to read it worked out!
answered by NofarC (4k points)
...