Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't know Moles at all, but I'll cover the ones I know a bit about (I really need a table for this, though).</p> <p><strong>Moq</strong></p> <p><em>Pros</em></p> <ul> <li>Type-safe</li> <li>Consistent interface</li> <li>Encourages good design</li> </ul> <p><em>Cons</em></p> <ul> <li>Not as full-featured as some of its competitors <ul> <li>It can't mock delegates</li> <li>It can't do ordered expectations</li> <li>probably other things I can't think of right now...</li> </ul></li> <li>Can only mock interfaces and virtual/abstract members</li> </ul> <p><strong>Rhino Mocks</strong></p> <p><em>Pros</em></p> <ul> <li>Type-safe</li> <li>Full feature set</li> <li>Encourages good design</li> </ul> <p><em>Cons</em></p> <ul> <li>Confusing API. There are too many different ways to do the same things, and if you combine them in the wrong way it just doesn't work.</li> <li>Can only mock interfaces and virtual/abstract members</li> </ul> <p><strong>TypeMock Isolator</strong></p> <p><em>Pros</em></p> <ul> <li>Type-safe (AFAIR)</li> <li>Can mock <em>anything</em></li> </ul> <p><em>Cons</em></p> <ul> <li>Very invasive</li> <li>Potential Vendor Lock-In</li> <li>Does not encourage good design</li> </ul> <p><strong>NMock</strong></p> <p><em>Pros</em></p> <ul> <li>Encourages good design</li> <li>Works on any version of .NET (even 1.1)</li> </ul> <p><em>Cons</em></p> <ul> <li>Not type-safe</li> <li>Can only mock interfaces and virtual/abstract members</li> </ul> <p>Please note that particularly the advantages and disadvantages regarding TypeMock are highly controversial. I published <a href="http://blogs.msdn.com/ploeh/archive/2008/03/04/Typemock.aspx" rel="noreferrer">my own take on the matter on my blog</a>.</p> <p>I started out with NMock when that was the only option back in 2003, then migrated to Rhino Mocks because of its type safety, and now use Moq because of the simpler API.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload