Simple play icon Course
Skills

Testing .NET Code in Visual Studio 2019

by Thomas Claudius Huber

Visual Studio 2019 has great support and new features for unit tests. This course will show you how to write and run unit tests in Visual Studio 2019 helping you write rock-solid applications.

What you'll learn

At the core of writing robust .NET code is a thorough knowledge of testing. In this course, Testing .NET Code in Visual Studio 2019, you will explore the skills you need to test your .NET code in Visual Studio 2019. First, you will learn how to create a test project and how to write and run unit tests. Next, you will discover how to write data-driven tests and how to work with the popular test frameworks MSTest, NUnit, and xUnit. Finally, you will see how to analyze the code coverage of your tests and how to run tests in real-time with Live Unit Testing. When you’re finished with this course, you’ll have a foundational knowledge of testing .NET Code in Visual Studio 2019 that will help you as you move forward to test and implement your own .NET projects. This course was recorded using the preview version of Visual Studio 16.2 to reflect what the user interface will look like going forward.

Table of contents

Course Overview
1min

Course FAQ

What is unit testing?

Unit testing is the practice of testing the smallest individual components or units of a code to determine if it works properly and is ready for use. This helps find and protect against bugs that could break the code.

What will I learn in this course?

In this course you will learn how to write and run unit tests in Visual Sutdio 2019 for .NET code. Some of the topics covered include:

  • Creating a test project
  • How to write and run unit tests
  • How to write data-driven tests
  • Test frameworks MSTest, NUnit, and xUnit
  • Analyzing code coverage
  • Live Unit Testing
  • Much more
Who is this course for?

This course is for anyone who wants to learn how to perform unit tests on .NET code in Visual Studio.

What are the prerequisites?

Before taking this course you should be familiar with C# programming basics. If you need a refresher, or to learn for the first time, check out this C# course.

About the author

Thomas is a Microsoft MVP for Windows Development. He works as a developer, consultant, and trainer in the fields of .NET, C#, TypeScript, XAML, and Azure. Thomas is a well-known speaker and book author. He has written several special interest books in his areas, including an extensive handbook for Windows Presentation Foundation and a handbook on development with TypeScript. Thomas lives in Germany's Black Forest with his wife and their three daughters. In his spare time, he plays football and ... more

Ready to upskill? Get started