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

Arranging Mocks in a different class than the Test Class

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 19 Oct 2012, 04:54 PM
Is this possible?

I would like to arrange mocks in a class that the test class instantiates. It seems that the mock context doesn't carry over though, as none of my arranges get used. If i simply move the arranges to the test class, all seems happy.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 23 Oct 2012, 02:38 PM
Hello Jose,

 Thank you for contacting Telerik support.

 As far as I can understand, you want to use JustMock`s "Future Mocking" feature, which is shown here (please correct me if I have misunderstood you):
 - http://www.telerik.com/help/justmock/advanced-usage-future-mocking.html

 Is it possible for you to send us an example or a sample solution about the issue you are experiencing, so we can investigate it further or understand it clearer.

 Thank you for your cooperation in advance.

Kind regards,
Kaloyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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