Visual Studio Professional 2019 - version 16.6.3
JustMock 2019.1.115.2 (Commercial version)
My solution has 3000+ unit tests and suddenly, 1000+ tests failed with the error :
Message:
Test method Cloee2.Ws.UnitTests.Services.Business.TestConditionsAdmissionSe2.GetClasseGeneriqueNulle threw exception:
Telerik.JustMock.Core.ElevatedMockingException: Cannot mock 'Ch.Ne.Ceg.Cloee2.Services.CrudCloee2Helper'. The profiler must be enabled to mock, arrange or execute the specified target.
Stack Trace:
ProfilerInterceptor.ThrowElevatedMockingException(MemberInfo member)
MocksRepository.InterceptStatics(Type type, MockCreationSettings settings, Boolean mockStaticConstructor)
MocksRepository.ConvertExpressionToCallPattern(Expression expr, CallPattern callPattern)
MocksRepository.Arrange[TMethodMock](Expression expr, Func`1 methodMockFactory)
ProfilerInterceptor.GuardInternal[T](Func`1 guardedAction)
TestConditionsAdmissionSe2._arrangeSearchFormations() line 523
TestConditionsAdmissionSe2._mockGetClasseGenerique() line 913
TestConditionsAdmissionSe2.GetClasseGeneriqueNulle() line 987
They pass in debug, but not in run.
I try to clear bin and obj folder of my solution, but nothing to do.
Any idea ?