Error Received please help

2 posts, 0 answers
  1. Chris McNear
    Chris McNear avatar
    12 posts
    Member since:
    Feb 2010

    Posted 09 Feb 2012 Link to this post

    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.

  2. Ricky
    Ricky avatar
    467 posts

    Posted 14 Feb 2012 Link to this post

    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:

    Kind Regards,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top