Matthew,
As Ayende said, show us the code to reproduce this so we can help. I
also believe what you described is not possible.
Cheers,
Kenneth

On Wed, Jul 1, 2009 at 12:21 AM, Matthew Evans<[email protected]> wrote:
>
> My apologies seems what i was looking for was the use of
> DynamicMultiMocks<T>().
>
> However switching to this presented another problem, I'm mocking an
> Interface that inherits from the System.ServiceModel.IClientChannel
> and using the DynamicMultiMocks<T>(param Type[]) call results in the
> BadImageFormatError that seems to be quite common. Now the alternative
> present for a single remote mock works fine but it brings me back to
> my original problem getting a null when the Mock is cast as the parent
> Interface.
>
> Is there an alternative RemoteMultiMocks<T>(param Type[]) or work
> around for this currently?
>
> On Jun 30, 6:33 pm, Ayende Rahien <[email protected]> wrote:
>> Please create a test case for this, what you describe should not be possible
>>
>> On Tue, Jun 30, 2009 at 9:10 AM, Matthew Evans <[email protected]>wrote:
>>
>>
>>
>>
>>
>> > I have a small issue i havent been able to find any documentation on.
>> > Using 3.3 I am creating a mock object say IMyObject.
>> > IMyObject inherits from IMyParentObject. Now somewhere in the code the
>> > mock object is being cast as IMyParentObject and return a null.
>>
>> > My question is how do I prepare a mock to deal with castings implicit
>> > and explicit?
>> > Thanks.
> >
>

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

Reply via email to