Hello! We using StackExcange.Redis in our project. But if I run next test
[TestMethod, Isolated]
public void ConnectAsync_ReturnConnection()
{
var result = ConnectionMultiplexer
.ConnectAsync("192.168.0.1:80")
.Result;
}
I get Typemock.StackOverflowException.
I see next stack trace in log file:
Fatal error terminating. TypeMock.StackOverflowException:
*** Potential StackOverflow detected. Typemock Isolator prevented application crash.
at TypeMock.MockManager.isMocked(Object context, String typeName, String methodName, Object methodParameters, Boolean isDecorated, Boolean isIntercepted)
at Typemock.Interceptors.Profiler.InternalMockManager.isMocked(Object that, String typeName, String methodName, Object methodParameters, Boolean isInjected, Boolean isIntercepted)
at StackExchange.Redis.SocketManager.<>c.<.cctor>b__49_0(Object context)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
What can cause this exception?