I don't see the invalid cast as a Rhino problem at all...it's a framework thing. Until there's something like ducktyping what you're poposing isn't possible
On Fri, Jan 29, 2010 at 4:44 AM, TheMightyKumquat <[email protected]>wrote: > Yes - I know that I can't perform the cast - that's why I posted this > in the first place. My question is - is there any way around this? Or > is the answer just "no, you can't use Rhino Mocks to do this at all." > The only thing I've been able to do to get my test to pass is to feed > the real MyController object into the test as the Presenter's > IMyController object. But that is exactly the dependency that you use > mock objects to avoid! > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rhinomocks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rhinomocks?hl=en. > > -- Tim Barcz Microsoft C# MVP Microsoft ASPInsider http://timbarcz.devlicio.us http://www.twitter.com/timbarcz -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
