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.
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
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.
Course Overview Hi everyone. My name is Thomas Claudius Huber and welcome to my course, Testing .NET Code in Visual Studio 2019. I am a software developer, and I build applications mainly with Visual Studio and .NET. In this course, you will learn how to use Visual Studio 2019 to write and run unit tests. You will test and implement new features for a .NET project of the Wired Brain Coffee Company. Testing your .NET code will help you to build rock-solid applications. Visual Studio 2019 has great support for unit tests. It contains the brand-new Test Explorer that lets you not only run your tests, but, for example, also group and filter them. Some of the major topics that we will cover include writing and running unit tests in Visual Studio, using the popular test frameworks MSTest, Nunit, and xUnit, analyzing how much code is covered by your tests, and testing your .NET code in real-time while you are coding with Visual Studio's Live Unit testing. By the end of this course, you will know how to use Visual Studio 2019 to write and run unit tests. This will help you to build solid and professional applications with .NET. Before beginning the course, you should be familiar with the basics of the C# programming language. I hope you will join me on this journey to learn how to write and run tests in Visual Studio with the course, Testing .NET Code in Visual Studio 2019, at Pluralsight.