Course Overview
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 Microsoft’s MSTest unit testing framework that comes with Visual Studio 2019, including the free Community version. This course is designed to run on .NET 5.0, which is the next version of .NET Core and is the main implementation of .NET going forward. .NET Core is a new package-based implementation that is cross-platform, running on Mac and Linux besides Windows. 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.
Requirements
- The student should have a basic knowledge of.NET Core and experience programming in C# with Visual Studio.
Target audiences
- Developers who need to learn the methodology of test-driven development and the use of Microsoft’s MSTest unit testing framework that comes with Visual Studio 2019.
Curriculum
- 1 Section
- 9 Lessons
- 1 Day
- Topics9
- 1.1Table of Contents (Overview) Chapter 1 – Test Driven Development Development Tests Tests Automation for TDD of TDD Design
- 1.2Testing List
- 1.3the MSTest Framework with MSTest Test Drive Interface and Stub Class List for Queue Testing QueueLib Second Test Queue Functionality with Legacy Code Travel Agency Case Study Example Program
- 1.4Chapter 2 – Visual Studio Unit Testing Fundamentals of Unit Tests Assert Example Testing Framework 2A Testing Framework Namespace Class
- 1.5Assert Methods Class Class Case Methods Class Runner Tests Multiple Test Classes the Ignore Attribute Initialization and Cleanup Initialization Example Initialization and Cleanup Test Initialization Example 2B
- 1.6Chapter 3 – More about MSTest Framework Example ProgramI Exceptions Settings and Dequeue for Enqueue and Dequeue
- 1.7of ToArray() Exception Tests 3A Asserts Asset Example a Custom Assert Custom Assert Example
- 1.8Unit Tests Selected Tests Tests at the Command Line
- 1.9Class Implementation the New Version 3B

