Not able to Mock Objects

2 posts, 0 answers
  1. Simardeep
    Simardeep avatar
    1 posts
    Member since:
    Apr 2014

    Posted 08 Apr 2014 Link to this post

    Even after installing JustMock Software, I'm not able to mock the objects.

    A piece of code works on other machine but the same doesn't works on mine.

    To Mock a object I wrote:

     Class obj = Mock.Create<Class>(Constructor.Mocked);

    But when I try to execute this statement, ideally the debugger should not go inside the constructor but unfortunately it does.

    Any suggestion would be of great help.
  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 10 Apr 2014 Link to this post

    Hi Simardeep,

    I tried to reproduce this on my side, unfortunately with no avail. Can you check if the profiler is enabled from the JustMock menu inside Visual Studio? Further, it will be of a great help if you can share the exact code that is being mocked with that statement (the Class class).

    Please, note that in order to receive faster responses by us, you can use your subscription and send us a support tickets instead of publishing in the forums. The tickets have 24 hours response time and are also strongly confidential. You can send them from here.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top