I've been learning about DynamicObject
in .NET 4.0 and was wondering if this type would be well suited to creating mock objects.
Mocking seems like a great way to use DynamicObject
, but am I missing something?
- Are there any mocking frameworks that use
DynamicObject
(as opposed to dynamic proxies or interception) for mocking? - Are there any disadvantages to using
DyanmicObject
for mocking (besides requiring the .NET 4.0 CLR)?