Unit Testing with xUnit.net
Summary
This Drill covers unit testing and testing patterns in xUnit, a unit testing tool for Microsoft .NET. Topics include an introduction to unit testing with xUnit, dependency injection, using test stubs, using mock objects, using shared fixtures, and using custom assertions and finder methods.
Audience
This Drill is for intermediate developers who want to learn how to write effective unit tests using documented test patterns in xUnit.net.
What you'll learn
You will learn how to use the xUnit.net framework to create unit tests for your code. After taking this Drill, you will be able to use xUnit.net to create unit tests on a class or method level, access private methods and properties of your code under test, and control the tests that run. You will also know how to apply documented testing patterns and techniques.
What you need to know
We assume that you’re already familiar with the concepts of programming and you’ve some experience of Visual Studio 2005/2008. For this Drill, you’ll also need to be comfortable with Visual C# syntax.
