Hi. I have one external library wich export to me implementation of it interface IConnection. And I want mock this IConnection. It was simple if not some thing: IConnection has method ExampleMethod() wich return class TestClass() without interface and ... without constructor.
MockRepository mocks = new MocksRepository(); var conn = mocks.StrictMock<IConnecton>(); Expect.Call(conn.ExampleMethod()).Return(??????????) // I can't create mock for TestClass. MyClass myCl = new MyClass(conn); mocks.ReplayAll(); myCl.DoSomething(); mocks.VerifyAll(); thx. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
