title: How do you Mock IUnityContainer?
body: <p>I'm trying to Mock the IUnityContainer using Moq 3.0</p>
  
  <p>I'm getting a BadImageFormatException, but not when debugging. From the looks of it I'm not the only one that's ran into this problem.</p>
  
  <p><a href="http://www.nabble.com/BadImageFormatException,-but-not-when-debugging-td18742529.html" rel="noreferrer">here</a></p>
  
  <p>And its a registered issue for Moq</p>
  
  <p><a href="http://code.google.com/p/moq/issues/detail?id=87" rel="noreferrer">here</a></p>
  
  <p>I'm just curious if anyone has found a solution... closest I've found is a nice solution that uses RhinoMock by Roy Osherove </p>
  
  <p><a href="http://weblogs.asp.net/rosherove/archive/2008/04/14/creating-a-automockingcontainer-with-microsoft-unity-pretty-darn-simple.aspx" rel="noreferrer">here</a></p>
  
  <p>but I really like Moq! So I don't really want to have to switch to Rhino Mock but I will if I must</p>
  
  <p>Thanks in advance!</p>