That's why we test our code....we've all been there. Thanks for letting us know...
Tim On Mon, Jul 6, 2009 at 5:41 PM, Matthew Evans <[email protected]>wrote: > > I apologize the issue was not within Rhino mocks but rather the > projects inner framework. > Sorry for wasting your time. > > On Jul 7, 4:03 am, Kenneth Xu <[email protected]> wrote: > > Matthew, > > > > BadImageFormat aside, if IOnlineAVLVehicleService inherits from > > IClientChannel, why do you need to use MultiMock? CreateMock should be > > good to go. > > > > IOnlineAVLVehicleService vehicleService = > > mock.CreateMultiMock<IOnlineAVLVehicleService>(); > > IClientChannel clientChannel = vehicleService; > > Assert.IsNotNull(clientChannel); // this should pass! > > > > Cheers, > > Kenneth > > > > > > > > On Mon, Jul 6, 2009 at 12:35 AM, Matthew Evans<[email protected]> > wrote: > > > > > The IOnlineAVLVehicleService interface inherits from > > > System.ServiceModel.IClientChannel. > > > This current configuration throws a BadImageFormat error, where as I > > > am unaware of any alternative to create multiple remote mocks. > > > > > IOnlineAVLVehicleService vehicleService = > > > mock.CreateMultiMock<IOnlineAVLVehicleService>(new Type[] { typeof > > > (IOnlineAVLVehicleService), typeof(IClientChannel) }); > > > -- Tim Barcz ASPInsider http://timbarcz.devlicio.us http://www.twitter.com/timbarcz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
