4106. Test-Driven Development using C# and Visual Studio
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 the unit testing framework that comes with Visual Studio 2010 Professional Edition and higher.
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 doing unit testing in your .NET development projects. The student will receive a comprehensive set of materials, including course notes and all the programming examples.
Prerequisites: The student should have a basic knowledge of the .NET Framework and experience programming in C# with Visual Studio.
1. Test-Driven Development
a. What Is Test-Driven Development (TDD)?
b. Functional Tests / Customer Tests
c. Unit Tests / Programmer Tests
d. Test Automation
e. Simple Design
g. A Visual Studio Test Drive
h. TDD with Legacy Code
2. Visual Studio Unit Testing Fundamentals
a. Structure of Unit Tests
b. Unit Testing Framework
d. Test Cases
e. Test Classes
f. Test Runners
g. Ignoring Tests
h. Initialization and Cleanup
3. More about Unit Testing Framework
a. Expected Exceptions
b. Custom Asserts
c. Test Lists
d. Debugging Unit Tests
System Requirements: Course exercises require Visual Studio 2010 Professional Edition or higher and a Windows operating system, XP or more recent. A good minimal hardware profile for this course would have a 1 GHz or equivalent CPU, 512 MB of RAM, and at least 4 GB of free disk space for tools installation and courseware.