Sunday, January 4, 2015

Getting started Unit Testing with Moq

If you are just starting to learn about Unit Testing using Mocking Frameworks such as Moq, unfortunately, the documentation out there for Moq is pretty sparse.  It consists of some basic code samples with very little explanation of what they mean or how to properly use them in different situations.

You can check out the Moq Quickstart over here: https://github.com/Moq/moq4/wiki/Quickstart

Fortunately, there is a fairly good blog post on how to use Moq here:

http://www.deanhume.com/Home/BlogPost/basic-introduction-to-writing-unit-tests-with-moq/16

http://deanhume.com/home/blogpost/basic-introduction-to-writing-unit-tests-with-moq---part-2/23

Of course, you can also check out PluralSight's courses on Moq as well (requires a subscription): http://www.pluralsight.com/courses/mocking-with-moq

No comments:

Post a Comment