Getting Exception while doing Mock.Arrange()

2 posts, 0 answers
  1. Abdeali
    Abdeali avatar
    5 posts
    Member since:
    Apr 2015

    Posted 03 Aug 2015 Link to this post

    Hello,

    I am trying to do Mock.Arrange() in the following manner:

     var practice = Mock.Create<PracticeOptions>();
     Mock.Arrange(() => practice.PolicyExpirationDays).Returns(30);

    I am getting the exception in the second line saying that "Cannot mock 'Int32 get_PolicyExpirationDays()'. The profiler must be enabled to mock, arrange or execute the specified target."

    I tried updating\removing\installing JustMock on my machine but nothing is working out.

    Please look into this asap as it's a bit urgent.

    Thanks,

    Abdeali

  2. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 06 Aug 2015 Link to this post

    Hello Abdeali,

    I will close this thread for now, as you have submitted a support ticket on the same matter.

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top