Hi. I have one external library wich export to me implementation of it interface IConnection. I wish to mock this interface in my test. It was simple if not one thing: IConnection has methon SomeMethod() wich return class SomeClass, and this class has no one interface and... constructors. Example:
MockRepository mocks = new MockRepository(); var conn = mocks.StrictMock<IConnection>(); Expect.Call(conn.SomeMethod()).Return(????????) // How i can mock returned SomeClass? MyClass my = new MyClass(conn); mocks.ReplayAll(); my.DoSome(); mocks.VerifyAll(); tnx; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
