This is a migrated thread and some comments may be shown as answers.

Error Received please help

1 Answer 191 Views
JustMock Free Edition
This is a migrated thread and some comments may be shown as answers.
Chris McNear
Top achievements
Rank 1
Chris McNear asked on 09 Feb 2012, 10:46 PM
In a nutshell I am receiving the following error.
Test method SPM150.Test.LogBenchmarkValueChangeTest.Test0020LogTransactionCalledWhenValuesDifferentCorrectParmetersVersion1 threw exception:
Telerik.JustMock.MockException: Profiler must be enabled to mock/assert target SPM150ControllerTestBase.get_AssetsServiceMock() method.
at Telerik.JustMock.Handlers.InterceptorHandler.Create(Object target, MethodInfo methodInfo, Boolean privateMethod)
at Telerik.JustMock.MockContext`1.SetupMock(MockExpression`1 expression)
at Telerik.JustMock.Mock.<>c__DisplayClass13.<Assert>b__12(MockContext`1 x)
at Telerik.JustMock.MockContext.Setup(Instruction instruction, Action`1 action)
at Telerik.JustMock.Mock.Assert(Expression`1 expression, Args args, Occurs occurs)
at Telerik.JustMock.Mock.Assert(Expression`1 expression)
at SPM150.Test.LogBenchmarkValueChangeTest.Test0020LogTransactionCalledWhenValuesDifferentCorrectParmetersVersion1() in SPM150ControllerTest.cs: line 545

I am running my unit test using the Resharper 6.1 Test Runner in Visual Studio 2010.  I recently upgraded from the Q1 2011 Free edition to the Q3 2011 Free edition.  before the upgrade all of the tests ran without any exception.

I upgraded because I was having an issue where a test was passing despite the fact that I changed a value that should have made it fail, and though by chance it was something that could be fixed by doing an upgrade.

Any help you can provide is greatly appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ricky
Telerik team
answered on 14 Feb 2012, 12:54 PM
Hi Chris,
Thanks again for reporting the issue.

An answer to this issue has been posted in the following forum post, please check it out:
http://www.telerik.com/community/forums/justmock/general-discussions/profiler-must-be-enabled-error.aspx


Kind Regards,
Mehfuz
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
JustMock Free Edition
Asked by
Chris McNear
Top achievements
Rank 1
Answers by
Ricky
Telerik team
Share this question
or