Home About Courses Schedule Services Webinars Contact Search

Test-Driven Development Using NUnit and C#


Duration: 1 Day

Method: Instructor led, Hands-on workshops

Price: $600.00

Course Code: NE1022


This course is designed for C# programmers who will be testing their code with NUnit.


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 3.5 and Visual Studio 2008.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.


Upon successful completion of this course, the student will be able to:

  • Understand the principles of test-driven development
  • Acquire fluency in developing tests using the NUnit framework
  • Efficiently exercise tests suites using both GUI and command-line tools


The student should have a basic knowledge of the .NET Framework and experience programming in C# with Visual Studio.


  • I. Test-Driven Development
    • What Is Test-Driven Development (TDD)?
    • Functional Tests / Customer Tests
    • Unit Tests / Programmer Tests
    • Test Automation
    • Simple Design
    • Refactoring
    • An NUnit Test Drive
    • TDD with Legacy Code
  • II. NUnit Fundamentals
    • Structure of Unit Tests
    • NUnit Framework
    • Assertions
    • Test Cases
    • Test Fixtures
    • Test Runners
    • Ignoring Tests
    • Setup and TearDown
    • Test Fixture Setup and TearDown
    • NUnit GUI Tool
    • NUnit with Visual Studio
  • III. More about NUnit
    • Exceptions
    • Debugging NUnit Tests
    • Custom Asserts
    • Categories
    • NUnit Console Tool
    • Refactoring
  • IV. Appendix A. Learning Resources