Simple play icon Course
Skills

Implementing C# 10 Unit Testing Using Visual Studio 2022 and .NET 6

by Paul D. Sheriff

This course will teach you how to get started creating unit tests using C# and Visual Studio 2022 to improve the quality of your applications.

What you'll learn

Every developer needs to test code, or have it tested by someone. This is where unit testing can help. In this course, Implementing C# 10 Unit Testing Using Visual Studio 2022 and .NET 6 you’ll learn to create unit tests using MSTest and Visual Studio. First, you’ll explore why unit testing is an important part of the software development process. Next, you’ll discover how to build your first unit tests and run them using Visual Studio. Next, you'll apply best practices to avoid hard-coding, initialize and clean up, and to organize unit tests. Then, you'll explore the various Assert classes for working with different data sets. After that, you’ll see how to consolidate tests by making them data-driven. Finally, you’ll learn how to automate your tests by running them from a command line. When you’re finished with this course, you’ll have the skills and knowledge to create unit tests that will improve the quality of your code and make testing quicker.

Table of contents

Course Overview
1min

About the author

Paul has over thirty years of experience architecting information systems and his expertise is in much demand from Fortune 500 companies. Paul is a Pluralsight author, has published 400+ articles, and authored over 14 books on topics ranging from JavaScript, Angular, C#, SQL Server and many .NET technologies. Paul is a frequent speaker at conferences and user groups.

Ready to upskill? Get started