Complete Guide to Unit Testing in .NET Core (NUnit and xUnit) [Video]

By Bhrugen Patel
    Advance your knowledge in tech with a Packt subscription

  • Instant online access to over 7,500+ books and videos
  • Constantly updated with 100+ new titles each month
  • Breadth and depth in over 1,000+ technologies
  1. Introduction to the Course

About this video

"Production application can break with a simple change that was unexpected to alter any other functionality." Sounds familiar, right?

The good news is, with well-written unit tests this would be a thing of the past.

Automated testing has been a buzzword for a while, but many times developers struggle to find a course that covers the fundamentals of unit testing while implementing what they learned in a real-world project! That is the focus of this course.

This course is all about writing effective unit tests using C# programming language and NUnit/xUnit as a unit testing framework. Along the way, we will learn the concepts related to unit testing. Today unit testing is an absolutely required skill from any professional developer. Companies expect developers to know how to write unit tests using the best practices. This course will help you set up a solid foundation with a real-world example and how unit testing could be done in a .NET core web application with EF Core.

By the end of this course, you will have a solid foundation with unit testing. Along with a solid foundation, you’ll also implement what is learned in real-world N-Tier web applications with .NET 6 and EF Core.

All the code files and resource files are added on the GitHub repository at

Publication date:
October 2021
5 hours 17 minutes

About the Author

  • Bhrugen Patel

    Bhrugen Patel is a passionate and creative software engineer with a strong focus on simplicity and thorough details. He has been programming since high school and was involved with multiple web and desktop projects using .NET. He has a master's degree in computer science and a bachelor’s degree in computer engineering. He also has many years of experience with .NET C# and .NET MVC. He enjoys teaching alongside his full-time job.

    Browse publications by this author
Complete Guide to Unit Testing in .NET Core (NUnit and xUnit) [Video]
Unlock this video and the full library for $5 a month*
Start now