Complete Guide to Unit Testing in .NET Core (NUnit and xUnit)
Master unit testing with NUnit, xUnit, and MOQ with a real-world N-Tier web application with the latest version of .NET Core 6 and EF Core
Development ,Mobile Development,
Lectures -86
Duration -5 hours
Lifetime Access
Lifetime Access
30-days Money-Back Guarantee
Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.
Course Description
"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 a 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 to the GitHub repository at https://github.com/PacktPublishing/Sparky
Audience:
This course is designed for the .NET developer who wants to build better-quality software with fewer bugs. This will also help them to learn unit testing from scratch and reinforce their fundamental learning with real-world applications.
Goals
- Learn unit testing from scratch.
- Learn to set up and use the NUnit and xUnit test framework.
- Write mocks with Mocking Framework (MOQ).
- Explore unit tests and how they are written.
- Run and debug unit tests.
- Implement unit testing in N-tier real-world web application projects using xUnit.
Prerequisites
- Basic knowledge of C# along with .NET Core and EF Core is required to gain the most out of this course. No prior experience is required in unit testing at all, you will learn it from scratch in this course.

Curriculum
Check out the detailed breakdown of what’s inside the course
Introduction to the Course
7 Lectures
-
Welcome 03:04 03:04
-
Manual Testing Overview 01:39 01:39
-
Advantages of Automated Testing 01:01 01:01
-
Tools Needed 00:49 00:49
-
Types of Tests 02:02 02:02
-
Testing Pyramid 02:15 02:15
-
Logical Phase of an Automated Test 01:53 01:53
First Unit Test
4 Lectures

Unit Testing
13 Lectures

NUnit Testing – Advance Concepts
14 Lectures

MOQ with Unit Testing
17 Lectures

XUnit
11 Lectures

Real World Example - NUnit
20 Lectures

Instructor Details

Packt Publishing
Packt are an established, trusted, and innovative global technical learning publisher, founded in Birmingham, UK with over eighteen years experience delivering rich premium content from ground-breaking authors and lecturers on a wide range of emerging and established technologies for professional development.
Packt’s purpose is to help technology professionals advance their knowledge and support the growth of new technologies by publishing vital user focused knowledge-based content faster than any other tech publisher, with a growing library of over 9,000 titles, in book, e-book, audio and video learning formats, our multimedia content is valued as a vital learning tool and offers exceptional support for the development of technology knowledge.
We publish on topics that are at the very cutting edge of technology, helping IT professionals learn about the newest tools and frameworks in a way that suits them.
Course Certificate
Use your certificate to make a career change or to advance in your current career.

Our students work
with the Best


































Related Video Courses
View MoreAnnual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe now
Online Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now