How do I combine two interfaces when creating mocks?

Posted by sduplooy on Stack Overflow See other posts from Stack Overflow or by sduplooy
Published on 2009-01-29T13:41:32Z Indexed on 2010/06/06 17:42 UTC
Read the original article Hit count: 215

Filed under:
|
|

We are using Rhino Mocks to perform some unit testing and need to mock two interfaces. Only one interface is implemented on the object and the other is implemented dynamically using an aspect-oriented approach. Is there an easy way to combine the two interfaces dynamically so that a mock can be created and the methods stubbed for both interfaces?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET