title: How to test a COM dependent object in C#
body: <p>I´m trying to do TDD with an object that has a dependency on a COM Interface. I though about mocking the COM interface, while doing development testing, and do it real on the integration tests. </p>
  
  <p>However, I cannot mock the COM interface, I tried with Moq, and it throws an exception:</p>
  
  <blockquote>
    <p>System.TypeLoadException was unhandled
    by user code 
    Message=Could not load type 'Castle.Proxies.iTunesAppProxy'
    from assembly 'DynamicProxyGenAssembly2,
    Version=0.0.0.0, Culture=neutral,
    PublicKeyToken=null'. The type is
    marked as eligible for type
    equivalence, but either it has generic
    parameters, or it is not a structure,
    COM imported interface, enumeration,
    or delegate</p>
  </blockquote>
  
  <p>Is it possible with other frameworks?
  How do you do TDD with COM dependent objects?</p>
  
  <p>Thanks in advance!or delegate</p>