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
When Calling MockManager.GetMocks on an interface like this

MockManager.GetMocks<ICache>();


I get no results when I have definitely mocked the interface. If I use the debugger and call

MockManager.GetMocks();


without specifying the type, I can see the mock sitting in the collection. If I call MockManager.GetMocks<ConcreteType> with a concreate type, I get the result expected.

For some reason Mocks of Interfaces dont seem to get returned from this operation. Is this by design or a bug?
asked by juice_johnson (9.3k points)

1 Answer

0 votes
Hi,

I don't think its by design, (and if for some reason it is then its a bad design). Anyway we will check this and get back with a more concrete answer.
answered by lior (13.2k points)
...