Hello,
A number of tests we have which previously passed with Typemock 6.0.10 in VS2010, no longer pass with Typemock 7.1.2 in VS2012. The error description is detailed below. The unit test and code it tests has not changed between versions of Typemock. As far as I'm aware, ConfigurationManager is in System.Configuration.dll.
*Edit* This has now been tested in VS2010, Typemock 7.1.2 and the tests pass, so only affecting VS2012. *Edit*
The line it does not like is:
KeyValueConfigurationCollection collection = new KeyValueConfigurationCollection();
Isolate.WhenCalled(() => ConfigurationManager.OpenMachineConfiguration().AppSettings.Settings)
.WillReturn(collection);
Test Name: TestUnityContainerHeirachyTestInterfaceTwoFirst
Test Outcome: Failed
Test Duration: 0:00:00.0078852
Result Message:
Test method TestUnityContainerHeirachyTestInterfaceTwoFirst threw exception:
TypeMock.TypeMockException:
*** Can not fake methods defined in mscorlib, try faking the defining type
Result StackTrace:
at ik.b(Object A_0)
at ik.d(Object A_0)
at ik.c.a()
at ik.a(Object A_0, Boolean A_1, Func`1 A_2, Action A_3, Action A_4, Action A_5, Boolean A_6)
at ik.e(Object A_0)
at TypeMock.ArrangeActAssert.ExpectationEngine`1.a(TResult A_0)
at <Our test file>
Many thanks,
John