Turns out this is a bug in Castle's Dynamic Proxy (not just the Silverlight version). I have posted on the Castle-users group a failing test:
http://groups.google.com/group/castle-project-users/browse_thread/thread/291 499bdaf73071?hl=en# Will have to wait and see if it gets fixed, then will need to be put into Silverlight version before I can use it . L From: Mark [mailto:[email protected]] Sent: Friday, 5 June 2009 4:06 p.m. To: '[email protected]' Subject: Silverlight/Unity Hi all, I have just started using the Silverlight version of Rhino Mocks but I'm having some problems. I am using the Prism framework with the default IOC container which is Unity. In my real app when I do this: MockContainer = MockRepository.GenerateStub<IUnityContainer>(); EntityConverter<Port> pec = new EntityConverter<Port>(ActivePorts); MockContainer.Expect(x => x.Resolve <IValueConverter>("ActivePorts")).Return(pec); When the last line is hit the code just seems to never return and continue (no error - just kind of hangs). I've also tried. MockContainer.Expect(x => x.Resolve <IValueConverter>("ActivePorts")); .and. MockContainer.Expect(x => x.Resolve <IValueConverter>()); .and. MockContainer.Expect(x => x.Resolve(typeof(IValueConverter))); .all to the same effect I tried to reproduce this in a simple test app and I get an error: BadImageFormatException occurred An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) I'm not sure whether this is a red-herring or not. Here is the test app including dlls I am using (~900kb): http://www.walkersretreat.co.nz/files/RhinoSL.zip If someone using Silverlight could take a look (and compare with what they have, perhaps?), I'd appreciate it! Thanks Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
