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

Not able to Mock Objects

1 Answer 7 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simardeep
Top achievements
Rank 1
Simardeep asked on 09 Apr 2014, 04:15 AM
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.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 10 Apr 2014, 02:56 PM
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.

Regards,
Kaloyan
Telerik
 

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.

 
Tags
General Discussions
Asked by
Simardeep
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or