I'm using Visual Studio 2013.
I've configured JustMock to "run together with JustMock" all detected profilers, however I'm seeing this exception:
Test Name: IndexPageTest
Test FullName: XXXXXXX.XXXX.Tests.Transport.TransportControllerTests.IndexPageTest
Test Source: c:\XXXXXXXXXXX\XXXXXweb\User Interface\Tests\Transport\TransportControllerTests.cs : line 24
Test Outcome: Failed
Test Duration: 0:00:00
Result Message: Unable to create instance of class XXXXXXX.XXXX.Tests.Transport.TransportControllerTests.
Error: Telerik.JustMock.Core.ElevatedMockingException: Cannot mock 'XXXXXXX.XXXX.Web.Application.Core.Providers.UserProfileProvider'.
The profiler must be enabled to mock, arrange or execute the specified target.
Detected active third-party profilers:
* {B61B010D-1035-48A9-9833-32C2A2CDC294} (from process environment)
Disable the profilers or link them from the JustMock configuration utility. Restart Visual Studio and/or the test runner after linking..
Result StackTrace:
at Telerik.JustMock.Core.ProfilerInterceptor.ThrowElevatedMockingException(MemberInfo member)
at Telerik.JustMock.Core.MocksRepository.InterceptStatics(Type type, IEnumerable`1 mixins, IEnumerable`1 supplementaryBehaviors, IEnumerable`1 fallbackBehaviors, Boolean mockStaticConstructor)
at Telerik.JustMock.MockBuilder.InterceptStatics(MocksRepository repository, Type type, Nullable`1 behavior, Boolean mockStaticConstructor)
at Telerik.JustMock.Mock.<>c__DisplayClass67.<SetupStatic>b__66()
at Telerik.JustMock.Core.ProfilerInterceptor.GuardInternal(Action guardedAction)
at Telerik.JustMock.Mock.SetupStatic(Type staticType, StaticConstructor staticConstructor)
at XXXXXXX.XXXX.Tests.Common.ControllerTestBase..ctor() in c:\XXXXXXXXXXX\XXXXXweb\User Interface\Tests\Patient\TransportTest.cs:line 75
at XXXXXXX.XXXX.Tests.Transport.TransportControllerTests..ctor()
Help!
Thanks in advance,
-bill
I've configured JustMock to "run together with JustMock" all detected profilers, however I'm seeing this exception:
Test Name: IndexPageTest
Test FullName: XXXXXXX.XXXX.Tests.Transport.TransportControllerTests.IndexPageTest
Test Source: c:\XXXXXXXXXXX\XXXXXweb\User Interface\Tests\Transport\TransportControllerTests.cs : line 24
Test Outcome: Failed
Test Duration: 0:00:00
Result Message: Unable to create instance of class XXXXXXX.XXXX.Tests.Transport.TransportControllerTests.
Error: Telerik.JustMock.Core.ElevatedMockingException: Cannot mock 'XXXXXXX.XXXX.Web.Application.Core.Providers.UserProfileProvider'.
The profiler must be enabled to mock, arrange or execute the specified target.
Detected active third-party profilers:
* {B61B010D-1035-48A9-9833-32C2A2CDC294} (from process environment)
Disable the profilers or link them from the JustMock configuration utility. Restart Visual Studio and/or the test runner after linking..
Result StackTrace:
at Telerik.JustMock.Core.ProfilerInterceptor.ThrowElevatedMockingException(MemberInfo member)
at Telerik.JustMock.Core.MocksRepository.InterceptStatics(Type type, IEnumerable`1 mixins, IEnumerable`1 supplementaryBehaviors, IEnumerable`1 fallbackBehaviors, Boolean mockStaticConstructor)
at Telerik.JustMock.MockBuilder.InterceptStatics(MocksRepository repository, Type type, Nullable`1 behavior, Boolean mockStaticConstructor)
at Telerik.JustMock.Mock.<>c__DisplayClass67.<SetupStatic>b__66()
at Telerik.JustMock.Core.ProfilerInterceptor.GuardInternal(Action guardedAction)
at Telerik.JustMock.Mock.SetupStatic(Type staticType, StaticConstructor staticConstructor)
at XXXXXXX.XXXX.Tests.Common.ControllerTestBase..ctor() in c:\XXXXXXXXXXX\XXXXXweb\User Interface\Tests\Patient\TransportTest.cs:line 75
at XXXXXXX.XXXX.Tests.Transport.TransportControllerTests..ctor()
Help!
Thanks in advance,
-bill