We may earn an affiliate commission when you visit our partners.
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.

Read more

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.

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.

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.

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:

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

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

.

This course is no longer available. Find something similar by browsing:
Unit Testing Visual Studio 2019 .NET Code MsTest NUnit XUnit Code Coverage

What's inside

Syllabus

Course Overview
Creating Your First Test Project
Writing and Running Unit Tests
Implementing Data Driven Tests
Read more

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Clearly explains how to test .NET code through data-driven testing
Exposes learners to widely used software testing frameworks such as MSTest, NUnit, and xUnit
Suitable for individuals already familiar with C# programming basics and seeking to develop a strong foundation in .NET testing practices
Provides instruction on analyzing code coverage, a crucial aspect of ensuring thorough testing
Integrates Live Unit Testing, a valuable tool for real-time test execution
Leverages the latest preview version of Visual Studio for a more up-to-date learning experience

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Foundational .net unit testing in vs

According to students, this course offers a highly practical and clear introduction to unit testing .NET code in Visual Studio 2019. Many commend the instructor's clear explanations and engaging teaching style, making complex topics like Live Unit Testing and code coverage accessible. Learners find the hands-on demos particularly useful for solidifying understanding of MSTest, NUnit, and xUnit. While widely praised as a strong foundational course, some experienced developers felt it was introductory and wished for more advanced mocking scenarios or complex real-world examples. The course is best suited for beginners to intermediate learners aiming to apply testing directly to their work.
Good coverage of Visual Studio 2019's built-in testing features.
"Live Unit Testing was a game-changer for me, and this course presented it perfectly."
"The course is very focused on VS 2019 features which is great."
"It clearly explains how to use Visual Studio 2019 features effectively."
"Code coverage analysis was also well-explained and useful for my projects."
Excellent for beginners seeking a solid introduction to unit testing.
"Excellent course! I highly recommend it for anyone starting with unit testing."
"Fantastic introduction to unit testing in .NET. Highly recommend for any new developer."
"Good foundational course. It clearly explains the basics of unit testing and how to use Visual Studio 2019 features effectively."
"This course provided me with a strong foundation in unit testing for .NET Core applications using VS 2019."
Provides practical, hands-on skills directly applicable to real work.
"I especially appreciated the hands-on demos which solidified my understanding of MSTest and NUnit. Very practical and directly applicable to my daily work."
"This course is a must-have for .NET developers looking to implement unit tests. The step-by-step approach for creating test projects was very easy to follow."
"The emphasis on practical application and the clear, concise explanations made understanding unit testing concepts simple."
"I learned how to use practical tools and strategies that I could apply immediately to my work."
Concepts are clearly explained by a knowledgeable instructor.
"The instructor explained complex topics like Live Unit Testing and code coverage very clearly."
"The instructor is incredibly knowledgeable and articulates concepts clearly. The practical exercises reinforced the theory."
"The explanations were concise, and the examples were practical. The instructor has a clear voice and keeps the material engaging."
"The instructor's teaching style is top-notch. Absolutely worth the time for any .NET developer."
May be too basic for experienced developers, lacking advanced topics.
"Decent course, but felt a bit basic if you already have some experience with unit testing frameworks. The coverage was introductory."
"While the course outlines key features, I found the pace a bit slow at times. Some of the examples felt overly simplistic."
"If you've done any unit testing before, you might find a lot of it redundant. I was hoping for more advanced patterns."
"I wished there was a bit more depth on advanced mocking scenarios or integration testing, but for a foundational course, it delivered what it promised."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Testing .NET Code in Visual Studio 2019 with these activities:
Explore MSTest, NUnit, and xUnit
MSTest, NUnit, and xUnit are popular unit testing frameworks for .NET. Explore these frameworks to expand your knowledge of unit testing options.
Browse courses on MsTest
Show steps
  • Install MSTest, NUnit, and xUnit.
  • Create unit tests using each framework.
  • Compare the features and benefits of each framework.
Attend a Unit Testing Workshop
Attending a workshop provides an opportunity to learn from experienced professionals and network with other developers. This can enhance your knowledge and skills in unit testing.
Show steps
  • Find a relevant unit testing workshop.
  • Register for the workshop.
  • Attend the workshop and actively participate.
Read 'Unit Testing Principles, Practices, and Patterns'
This book provides a comprehensive overview of unit testing principles, practices, and patterns. Reading it will enhance your theoretical understanding of unit testing.
Show steps
  • Read the chapters on unit testing principles and best practices.
  • Review the patterns for writing effective unit tests.
One other activity
Expand to see all activities and additional details
Show all four activities
Create a Unit Testing Tutorial
Creating a tutorial will help you solidify your understanding of unit testing concepts. Share your tutorial with others to contribute to the community knowledge.
Show steps
  • Choose a specific topic related to unit testing.
  • Research and gather information.
  • Write and format the tutorial content.
  • Share your tutorial on a website or platform.

Career center

Learners who complete Testing .NET Code in Visual Studio 2019 will develop knowledge and skills that may be useful to these careers:
Software Developer
Software Developers design, develop, and test software applications. They work with users to understand their needs and then create software that meets those needs. This course would be helpful for someone who wants to become a Software Developer because it provides a foundation in unit testing, which is an important part of the software development process. Additionally, the course covers a variety of testing frameworks, which can be helpful for developers who work with different programming languages and technologies.
Software Test Engineer
Software Test Engineers are responsible for testing software applications to ensure they meet the specified requirements. They work with developers to identify and fix bugs, and they may also be involved in writing test plans and procedures. This course would be helpful for someone who wants to become a Software Test Engineer because it provides a foundation in unit testing, which is a key part of the software testing process. Additionally, the course covers a variety of testing frameworks, which can be helpful for test engineers who work with different programming languages and technologies.
Test Automation Engineer
Test Automation Engineers are responsible for automating the software testing process. They develop and maintain automated test scripts, and they work with developers to ensure that the scripts are effective. This course would be helpful for someone who wants to become a Test Automation Engineer because it provides a foundation in unit testing, which is a key part of the test automation process. Additionally, the course covers a variety of testing frameworks, which can be helpful for test automation engineers who work with different programming languages and technologies.
Performance Analyst
Performance Analysts analyze the performance of software applications and identify ways to improve it. They work with developers to identify and fix performance bottlenecks, and they may also be involved in developing performance testing plans and procedures. This course would be helpful for someone who wants to become a Performance Analyst because it provides a foundation in unit testing, which can be used to identify performance issues. Additionally, the course covers how to analyze code coverage, which is important for understanding how well a test suite is testing the code.
Security Analyst
Security Analysts are responsible for protecting software applications from security threats. They work with developers to identify and fix security vulnerabilities, and they may also be involved in developing security testing plans and procedures. This course would be helpful for someone who wants to become a Security Analyst because it provides a foundation in unit testing, which can be used to identify security vulnerabilities. Additionally, the course covers how to analyze code coverage, which is important for understanding how well a test suite is testing the code.
Computer Programmer
Computer Programmers write and maintain software applications. They work with users to understand their needs and then develop software that meets those needs. This course would be helpful for someone who wants to become a Computer Programmer because it provides a foundation in unit testing, which can be used to ensure that the software application meets the specified requirements. Additionally, the course covers how to analyze code coverage, which is important for understanding how well the test suite is testing the code.
Quality Assurance Analyst
A Quality Assurance Analyst is responsible for testing software to ensure it meets the specified requirements. They work with developers to identify and fix bugs, and they may also be involved in writing test plans and procedures. This course would be helpful for someone who wants to become a Quality Assurance Analyst because it provides a foundation in unit testing, which is a key part of the software testing process.
Data Analyst
Data Analysts collect, analyze, and interpret data to identify trends and patterns. They use this information to make recommendations and decisions. This course would be helpful for someone who wants to become a Data Analyst because it provides a foundation in data-driven testing, which is a technique for testing software applications based on real-world data. Additionally, the course covers how to analyze code coverage, which is important for understanding how well a test suite is testing the code.
Business Analyst
Business Analysts work with stakeholders to understand their business needs and then develop software applications that meet those needs. This course would be helpful for someone who wants to become a Business Analyst because it provides a foundation in unit testing, which can be used to ensure that software applications meet the specified requirements. Additionally, the course covers how to analyze code coverage, which is important for understanding how well a test suite is testing the code.
Technical Writer
Technical Writers create documentation for software applications. They work with developers to understand the software and then write documentation that is clear and easy to understand. This course would be helpful for someone who wants to become a Technical Writer because it provides a foundation in unit testing, which can be used to ensure that the documentation is accurate and up to date. Additionally, the course covers how to analyze code coverage, which is important for understanding how well the documentation covers the code.
Project Manager
Project Managers plan, execute, and control software development projects. They work with stakeholders to define the project scope, budget, and timeline, and they oversee the development process to ensure that the project is completed on time and within budget. This course would be helpful for someone who wants to become a Project Manager because it provides a foundation in unit testing, which can be used to ensure that the software application meets the specified requirements. Additionally, the course covers how to analyze code coverage, which is important for understanding how well the test suite is testing the code.
Computer Scientist
Computer Scientists research and develop new computer technologies. They work on a wide range of topics, including artificial intelligence, computer graphics, and software engineering. This course would be helpful for someone who wants to become a Computer Scientist because it provides a foundation in unit testing, which can be used to ensure that new software technologies are reliable and efficient.
Database Administrator
Database Administrators manage and maintain databases. They work with users to understand their data needs and then design and implement databases that meet those needs. This course may be helpful for someone who wants to become a Database Administrator because it provides a foundation in unit testing, which can be used to ensure that the database is reliable and efficient.
Network Administrator
Network Administrators manage and maintain computer networks. They work with users to understand their network needs and then design and implement networks that meet those needs. This course may be helpful for someone who wants to become a Network Administrator because it provides a foundation in unit testing, which can be used to ensure that the network is reliable and efficient.
Systems Analyst
Systems Analysts analyze and design computer systems. They work with users to understand their system needs and then design and implement systems that meet those needs. This course may be helpful for someone who wants to become a Systems Analyst because it provides a foundation in unit testing, which can be used to ensure that the system is reliable and efficient.

Reading list

We've selected seven books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Testing .NET Code in Visual Studio 2019.
Comprehensive guide to the Microsoft Test Framework (MSTest), one of the most popular unit testing frameworks for .NET. It provides detailed coverage of all aspects of MSTest, including test project creation, test case writing, debugging, and code coverage analysis.
Explores various test patterns and techniques using the xUnit testing framework, which is known for its simplicity and focus on readability. It provides practical examples and guidance on how to write effective and maintainable tests.
Delves into the principles and practices of unit testing, using .NET as an example. It covers topics such as test design, test organization, mocking, and continuous integration, providing insights and techniques for writing effective and reliable tests.
Provides an in-depth look at unit testing in .NET Core, covering topics such as test-driven development, mocking, dependency injection, and advanced testing techniques. It comprehensive resource for professional developers who want to improve their testing skills.
Presents a collection of design patterns specifically for unit testing. It provides practical examples and guidance on how to apply these patterns to improve the readability, maintainability, and effectiveness of your tests.
Provides a comprehensive guide to test-driven development in .NET Core, covering topics such as test design, test automation, and refactoring. It emphasizes the use of modern .NET Core testing tools and techniques.
Provides a practical guide to testing in Visual Studio, covering topics such as unit testing, integration testing, and performance testing. It emphasizes the use of Visual Studio's built-in testing tools and features.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser