Course duration
- 1 day
Course Benefits
- Understand the principles of test-driven development.
- Acquire fluency in developing tests using the Visual Studio unit testing framework.
- Efficiently exercise test suites using Visual Studio and MSTest.
Course Outline
- Test-Driven Development
- What Is Test-Driven Development (TDD)?
- Functional Tests / Customer Tests
- Unit Tests / Programmer Tests
- Test Automation
- Simple Design
- Refactoring
- A Visual Studio Test Drive
- TDD with Legacy Code
- Visual Studio Unit Testing Fundamentals
- Structure of Unit Tests
- Unit Testing Framework
- Assertions
- Test Cases
- Test Classes
- Test Runners
- Ignoring Tests
- Initialization and Cleanup
- More about Unit Testing Framework
- Expected Exceptions
- Custom Asserts
- Playlists
- Debugging Unit Tests
- MSTest
- Refactoring
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Experience in the following is required for this C# class:
- The student should have a basic knowledge of the .NET Framework and experience programming in C# with Visual Studio.
Instructor-led courses are offered via a live Web connection, at client sites throughout Europe, and at our Geneva Training Center.