Complete Guide to Unit Testing in .NET Core (NUnit & XUnit)

Master unit testing with NUnit, XUnit and MOQ with a real world N-Tier web application (.NET Core 6 and EF Core)

4.46 (1058 reviews)
Udemy
platform
English
language
Software Testing
category
instructor
Complete Guide to Unit Testing in .NET Core (NUnit & XUnit)
6,408
students
5 hours
content
Sep 2021
last update
$74.99
regular price

What you will learn

Learn unit testing from scratch

What unit tests are for and how they are written

How to set up and use the NUnit and XUnit test framework

Run and Debug Unit Tests

Write Mocks with Mocking Framework (MOQ)

Implement unit testing in N-tier real world web application project using XUnit

Why take this course?

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

Good news is, with well written unit test's this would be a thing of the past.

Automated testing has been a buzz word 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 main 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 from developers to know how to write unit tests using best practices. This course will help you setup a solid foundation with a real world example and how unit testing could be done in a .NET Core Web application with EF Core.


What is unit testing?

UNIT TESTING is a type of software testing where individual units or components of a software are tested. The purpose is to validate that each unit of the software code performs as expected.


Why learn unit testing?

Why should I learn unit testing? Why spend extra time to write code to test? Is manual testing not sufficient? 

These are pretty common questions and I will answer them all but most of the times manual testing is much more time consuming and it is not as through as unit test. Unit tests take time once to write and can be executed for free every time! 

As application grows, the cost of manual testing grows exponentially. And manual testing will never give 100% confidence with all the edge cases.. Automated tests help you to catch the bugs while it is in development phase, because of which they would be easier to resolve.


Will it help me with job?

Many times, skills comes with that will that skill help me achieve professionally. Unit testing is a very valuable skill with the current development cycle. It is a must have skill in most organizations for senior developers.


By end of this course you will have a solid foundation with unit testing. Along with a solid foundation we will implement what we learned in real world N-Tier web application with .NET 6 and EF Core.

Reviews

Yashpal
October 19, 2023
Well, that was excellent. I would like to know why the source code isn't available for download. There was no download option or Github link that I could see.
Naresh
October 9, 2023
It is wonderful course for writing unit test cases. It is very simple and understandable course for beginners as well as experienced professionals.
Purnendu
September 15, 2023
This is the best unit testing course which I have found so far. Easy to understand with relevant examples.
Merna
August 28, 2023
What I liked: - The pace and structure was really great. - The instructor is calm and explains clearly. - Appreciated the last section with real world examples as it brings everything together. Note: - The Main Project files (downloaded from Github) had some issues with the packages as the course material is a bit old. I've upgraded the packages and got it working.
Jeremy
August 1, 2023
A lot of the stuff required substantial reconfiguring and investigation to work, as this tutorial was outdated. I was unable to run the Bongo stuff.
Alejandro
July 28, 2023
Up until this point, I don't know if we're going to cover mocking more complex services, with async tasks for example. I haven't reached the Real life example, but if we're going to apply only what I have seen so far, it could be good to cover the testing for complex methods
Özgür
March 24, 2023
Unfortunatelly I cannot tell this course is well organized, it has some audio issues too, and not up-to-date. One example is that on XUnit chapter, tutor says that XUnit framework is not supporting Assert.Multiple() func, but its current version actually supports it while I'm writing this comment. Apart from these, course is okay, it gives you the general concept and principles of what is a unit test, and how it should be implemented. Though the examples are relatively basic examples, except the examples on the last chapter.
Paras
March 20, 2023
The course is fantastic and gives you real-time Examples with different-different Layers like Database, Model, Service, and Web. I especially like Real World examples.
Gabriela
March 16, 2023
The course is good, however I wasn't able to use the snippets for the Real World Example because they have Nuget package errors.
Lucas
February 13, 2023
I was able to learn beyond my expectations, and for sure I'll be able to apply this content in my current (and future) jobs.
Joan
January 31, 2023
I don't need to reach final video. I know this a excellent course. Bhrugen Patel does not disappoint. Guaranteed!! Same as all the others courses that I've taken!
Christopher
January 18, 2023
The course is very slow to start but once the ball is rolling, some very interesting areas are covered. I have found exactly what I was looking for in this course.
TJ
January 8, 2023
This a good course and I'm glad I took it to refresh my understanding and muscle memory for writing NUnit unit tests. This course would have been a 5-star course had there been any integration tests being covered. Integration tests are very important and it should have been covered in this course.
Muhammed
January 8, 2023
The explanation is excellent. It should have included a test for CRUD operation in the controller and a Web API at least.
Khashayar
January 1, 2023
I like the slow pase of his videos, He is going very nicely over every single aspect, No rush what so ever and not over loading with tons of useless informations and talks. Thanks a lot.

Charts

Price

Complete Guide to Unit Testing in .NET Core (NUnit & XUnit) - Price chart

Rating

Complete Guide to Unit Testing in .NET Core (NUnit & XUnit) - Ratings chart

Enrollment distribution

Complete Guide to Unit Testing in .NET Core (NUnit & XUnit) - Distribution chart

Related Topics

4168068
udemy ID
7/6/2021
course created date
7/12/2021
course indexed date
Mehdi Yaici
course submited by