I am getting the following runtime error when I try and use RhinoMocks 3.5:
System.TypeLoadException: Method 'LoadSMContact' in type 'IMSMContactDataProxy51979982d6d548888091de2d94490f57' from assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=a621a9e7e5c32e69' does not have an implementation. at System.Reflection.Emit.TypeBuilder._TermCreateClass(Int32 handle, Module module) at System.Reflection.Emit.TypeBuilder.CreateTypeNoLock() at System.Reflection.Emit.TypeBuilder.CreateType() at Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter.BuildType () at Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.GenerateCode (Type proxyTargetType, Type[] interfaces, ProxyGenerationOptions options) at Castle.DynamicProxy.DefaultProxyBuilder.CreateInterfaceProxyTypeWithoutTarget (Type theInterface, Type[] interfaces, ProxyGenerationOptions options) at Castle.DynamicProxy.ProxyGenerator.CreateInterfaceProxyTypeWithoutTarget (Type theInterface, Type[] interfaces, ProxyGenerationOptions options) at Castle.DynamicProxy.ProxyGenerator.CreateInterfaceProxyWithoutTarget (Type theInterface, Type[] interfaces, ProxyGenerationOptions options, IInterceptor[] interceptors) at Castle.DynamicProxy.ProxyGenerator.CreateInterfaceProxyWithoutTarget (Type theInterface, Type[] interfaces, IInterceptor[] interceptors) at Rhino.Mocks.MockRepository.MockInterface(CreateMockState mockStateFactory, Type type, Type[] extras) at Rhino.Mocks.MockRepository.CreateMockObject(Type type, CreateMockState factory, Type[] extras, Object[] argumentsForConstructor) at Rhino.Mocks.MockRepository.DynamicMock<T>(Object[] argumentsForConstructor) at Rhino.Mocks.MockRepository.GenerateMock<T>(Object[] argumentsForConstructor) at ModelsUnitTests.Contact.ContactModelTests.TestLoadKnownContact() in ContactModelTests.cs: line 48 The interface being mocked has no multi-dimensional arrays: public interface class IMSMContactData { void DeleteSMContact(CoreLibrary::Common::IMSMContact^ pMSMContact); CoreLibrary::Common::IMSMContact^ LoadSMContact(long nId); void SaveSMContact(CoreLibrary::Common::IMSMContact^ pMSMContact); System::Collections::Generic::IEnumerable<CoreLibrary::Common::IMSMContact^>^ GetAllSMContacts(); virtual long FindContactBySerial(System::String^ serialToFind); }; This written in C++/CLI but the tests are in C# (no lambdas in C++ yet :( ) Any ideas? Thanks Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to RhinoMocks@googlegroups.com To unsubscribe from this group, send email to rhinomocks+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/RhinoMocks?hl=en -~----------~----~----~----~------~----~------~--~---