Easy Mocking With FakeItEasy

Posted Date: 9/1/2010 8:04:42 PM by Dan Martin

While there are already plenty of good mocking frameworks available for .NET, two more frameworks have been recently released and I figured I’d do a quick overview on both. First I’ll cover FakeItEasy, and in my next post I’ll take a look at NSubstitute. The first is FakeItEasy, a framework “designed for ease of use and for compatibility with both C# and VB.NET”. Sounds good right? It even got a lofty endorsement from Roy Osherove, author of The Art of Unit Testing, who said “it's a no brainer - FakeItEasy is the new Moq.” That is a big claim given how simple Moq is to use and read.

Read More...