I think lambdas will only come to C++ in vNext.
Yup, sorry. You'referring of course to the 'ocassionally useful suggestion of demeter': http://mobile.twitter.com/martinfowler/status/1649793241
not worried at all
are you talking about LSP? (http://en.wikipedia.org/wiki/Liskov_substitution_principle)
If that's the case, it's only partially useful and only on specific scenarios.
i.e. try to mock HttpContextBase :P
Version? This has been fixed quite a long time ago IIRC...
It also returns empty for enumerables and iqueryables.
if you set the default value to DefaultValue.Mock, you’d get an empty list too. Have you tried that?
Ok, so basically you want us to add List<T> and maybe Collection<T> too to return empty collections rather than null?
I assume you know how to change the DefaultValue property on mocks (which would make returning empty lists and mock objects very easy).
Would it be enough if the interface (and corresponding Mock<T> property) were exposed but undocumented and hidden from intellisense? (I think they complicate the API for the majority of users)