Hello,
I am not sure if this has been resolved but our team is trying to use Typemock to test one of our data access layer requiring use to System Center Operations Manager API. I was trying to mock the instance of a EnterpriseManageGroup here's the following code:
var mg = Isolate.Fake.Instance<EnterpriseManagementGroup>(Members.ReturnRecursiveFakes, ConstructorWillBe.Ignored);
Unfortunately, when I try to run it I get the following exception :
"The type initializer for 'TypeMock.InterceptorsWrapper' threw an exception."
Here's the InnerException:
"Additional non-parsable characters are at the end of the string."
Here's the stack trace:
at TypeMock.InterceptorsWrapper.get_IsNearStackOverflow()
at TypeMock.MockManager.isMocked(Object context, String typeName, String methodName, Object methodParameters, Boolean isDecorated, Boolean isIntercepted)
at TypeMock.MockPainter.ShouldPaint(String typename, String method, Object context, TypeParams genericTypes)