Dioniss
Dioniss

Reputation: 23

Can't mock an extension method wtih JustMock

I am trying to mock an extension method with justmock. For some reason it throws the following error:

"Test method TestProject1.JustMockTest.TestMethod threw exception: Telerik.JustMock.Core.ElevatedMockingException: Cannot mock 'TestProject1.Foo'. The profiler must be enabled to mock, arrange or execute the specified target."

How can I fix this?

Upvotes: 1

Views: 66

Answers (0)

Related Questions