Development Using NUnit and C#
An emerging software engineering paradigm is test-driven
development, where tests are written early and testing is performed
continuously during the development process. Problems are discovered early and
corrected when they are found. This one-day course for developers explains the
methodology of test-driven development and the use of NUnit in supporting
test-driven development on Microsoft .NET. It is current to .NET 4.5 and Visual
Studio 2012. Visual Studio 2012 brings major changes to the unit testing
framework, including a pluggable architecture that enables integration with
third-party test frameworks such as NUnit. This topic is covered in an
The course is practical, with many example programs and tests
written in C#, including a cumulative case study. The goal is to quickly bring
you up to speed in using NUnit in your .NET development projects. The student
will receive a comprehensive set of materials, including course notes and all
the programming examples.
Understand the principles of test-driven
Acquire fluency in developing tests using the
Efficiently exercise tests suites using both GUI
and command-line tools
Integrate third-party unit test frameworks such
as NUnit into Visual Studio
Duration: 1 day.
student should have a basic knowledge of the .NET Framework and experience
programming in C# with Visual Studio.
What Is Test-Driven Development (TDD)?
Functional Tests / Customer Tests
Unit Tests / Programmer Tests
An NUnit Test Drive
TDD with Legacy Code
Structure of Unit Tests
Setup and TearDown
Test Fixture Setup and TearDown
NUnit GUI Tool
NUnit with Visual Studio
More about NUnit
Debugging NUnit Tests
NUnit Console Tool
Integrating NUnit into Visual Studio
Integrating Third-Party Unit Test Frameworks into Visual Studio
NUnit Test Adapter
Running NUnit Tests within Visual Studio
Course exercises require Visual Studio 2012 Professional or higher and
a Windows 7 SP1 operating system, or more recent. NUnit 2.6.1 is used. See the
appropriate course Setup Guide for details.
A good minimal hardware profile for this course would have a 1.8 GHz
or equivalent CPU, 2 GB of RAM, and at least 10 GB of free disk space for tools
installation and courseware.