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 2022, including the free Community version. This course is designed to run on .NET 6.0, which is the latest version of .NET Core and is the main implementation of .NET going forward. .NET Core is a package-based implementation that is cross-platform, running on Mac and Linux besides Windows. .NET Framework 4.x continues to be supported. Test-Driven Development Using Visual Studio and C# (VS 2019) covers unit testing on .NET 4.x. 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 2022.
Curriculum
- 1 Section
- 3 Lessons
- 1 Day
- Topics3
- 1.1Chapter 2 – Visual Studio Unit Testing Fundamentals of Unit Tests Assert Example Testing Framework 2A Testing Framework Namespace Class Assert 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.2Table of Contents (Overview) Chapter 1 – Test Driven Development Development Tests Tests Automation for TDD of TDD Design Testing List the 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
- 1.3Chapter 3 – More about MSTest Framework Example ProgramI Exceptions Settings and Dequeue for Enqueue and Dequeue of ToArray() Exception Tests 3A Asserts Asset Example a Custom Assert Custom Assert Example Unit Tests Selected Tests Tests at the Command Line Class Implementation the New Version 3B

