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
-~----------~----~----~----~------~----~------~--~---