chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
I miss a "deep" ExpectGet - that can do something like this...

m_rephist.ExpectGet("Newest.PandaZone.Id.ExternalId", (decimal)0);

I hate mocking all those intermediate objects - just to be able to read a property in the end...

Is there any way to do this without building all the objects ? btw - without enterprise :-(

Regards
/Laro
asked by Larovia (3.8k points)

2 Answers

0 votes
Hi Laro,
It is great to see that you are digging deeper into Typemock. :D
You have requested a brilliant feature that we call Chained Mocks.
This is part of the Enterprise Edition.
answered by eli (5.7k points)
0 votes
I was wondering if this is chaining at all. I see chaining in Natural mocks having code completion & type checking, but here is just wish Reflective Mocking accessing a "deep" attribute / method.

Since I don't use code completion but "hand typing" I was hoping that this was an available feature in Pro. And nope, can't upgrade to Enterprise at the moment, have requested it though' :wink:
answered by Larovia (3.8k points)
...