[Test]
public void JustMockTheContainer()
{
MockRepository mockRepository = new MockRepository();
IUnityContainer container = mockRepository.Stub<IUnityContainer>();
}
This test fail!
The rasied exception is:
MbUnit.ReSharperRunner.MbUnit.RunnerException:
System.BadImageFormatException: An attempt was made to load a program
with an incorrect format. (Exception from HRESULT: 0x8007000B)
And looking at the stack trace it seems that the method that raise the
exception is at
Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter.BuildType()
called by Rhino.Mocks.MockRepository.MockInterface(CreateMockState
mockStateFactory, Type type, Type[] extras)
I'm using RhinoMocks 3.5 and mbUnit 2.4
Any ideas?
:-|
bye
emanuele