Unit Testing with NUnit

Summary

This Drill covers unit testing and testing patterns in NUnit, the open source unit testing framework for Microsoft .NET. Topics include an introduction to unit testing with NUnit, dependency injection, using test stubs, using mock objects, using shared fixtures, and using custom assertions and finder methods.

Audience

This Drill is for intermediate level developers who want to learn how to write effective unit tests using documented test patterns in NUnit.

What you'll learn

You will learn how to use the NUnit framework to create unit tests for your code. After taking this Drill, you will be able to use NUnit to create unit tests on a class or method level 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.