Master .NET and C# Unit Testing with NUnit and Moq (Udemy.com)
Become an expert in unit testing with NUnit, Moq, dotMemoryUnit, ReSharper and other tools!
Created by: Dmitri Nesteruk
Last updated August 2017
What you will learn
- What unit tests are for and how they are written
- How to set up and use the NUnit test framework
- What are the different test doubles: fakes, stubs, mocks
- How to effectively use the Moq mocking framework
- How to use the ReSharper unit test runner
- How to write memory-related unit tests using dotMemoryUnit
How it compares
Against the other 194 rated Udemy courses in C# on CourseDuck:
- Rating4.2 out of 5higher than 17% of them
- Reviews707#79 of 195 by number of reviews
- Length3.2 hoursshorter than 73% of them
- Last updatedAugust 2017earlier than 89% of them
Course Description
The goal of this course is to teach you Unit Testing and the use of the latest and greatest tools and frameworks available on the market today. This course covers the following technologies:
- NUnit, the most popular unit test framework available for .NET
- Moq, a mocking framework
- dotMemoryUnit, a unit test framework for testing memory consumption
- ReSharper (its unit test runner) used extensively in this course
- dotCover is used to illustrate the concepts of code coverage and continuout testing
In this course you'll learn what unit tests are, how to write and execute them, what are fakes/mocks/stubs/moles and how to use a mocking framework.
Instructor Details
- 4.2 Rating
707 Reviews
Dmitri Nesteruk
Dmitri is a quant, developer, book author and course author. His interests lie in software development and integration practices in the areas of computation, quantitative finance and algorithmic trading. His technological interests include C# and C++ programming as well high-performance computing using technologies such as CUDA and FPGAs. He has been a C# MVP since 2009.
More courses by Dmitri Nesteruk
Learn Parallel Programming with C# and .NET (2019)
4.6 (4,564 Reviews)
Provider: Udemy
Time: 5.3h
$14.99
More C# courses
C# Developers: Double Your Coding Speed with Visual Studio (2018)
4.7 (4,035 Reviews)
Provider: Udemy
Time: 2.2h
$13.99
Object Oriented Programming with C# - Beginner to Advanced (2020)
4.7 (2,063 Reviews)
Provider: Udemy
Time: 5.6h
$64.99
Learn Game Development with C# Programming and MonoGame! (2025)
4.7 (1,094 Reviews)
Provider: Udemy
Time: 6.6h
$12.99
Reviews
By Hiram Fernandes on 6/12/2021
Just what I was looking for: a mix of the Moq framework with hands-on approaches to several different cases, along with the guidance to using the NUnit Test framework. Excellent as an Introductory Course.
By Charles McCullough on 5/14/2021
This course is a good introduction to NUnit and Moq. I wish it would be updated by the instructor. I will be looking for another course that goes into more detail and has more hands on tutorials. I also wish the instructor would have used tools everyone has instead of focusing on ReSharper.
By Taylor Lowery on 1/18/2021
This is a great introduction to using visual studio and jetbrains tools for software testing, but I think it would be truly excellent if it walked through unit testing an actual application rather than Foo/Baz examples. That being said, I really do appreciate the introduction to these tools, especially Moq.
By Arun Nagria on 2/6/2020
Indeed a very good course, covering almost all of the required things which is needed to do unit testing. Only thing which i think can be added like in a real practical scenario how we can add test cases for Data Access Layer functions, web services etc.
By Neal Campbell on 12/3/2019
I really like Dimitri's courses, he always seemed so excited about his material that he consciously has to slow down to explain! He is definitely one of the smartest guys in the business. My only complaint about the course was that some of the concepts were not given in depth enough for me to know how I would really use them.
By Trevor Clark on 8/17/2018
I never felt bored of stuck (for very long). For a class on unit testing tools, that's pretty impressive. Instruction was clear and there was generally the right amount of context: content was all useful, and he provided enough information that I could look up the gaps I had in my C# knowledge.
By Ian Wang on 1/28/2018
An in-depth lecture! However, the examples are mainly for demonstrating the functions and settings of the frameworks instead of real-world applications. Learning basic knowledge in unit testing in advance of taking this course is recommended.
By Jonas Lima de Amorim on 1/25/2018
I like the content. You can get a glance on Unit Testing and Mocks for further studies and for getting started from zero. Whoever, some codes shown were not introduced before, so you try to develop while you're watching and you aren't able to do that, because you haven't seen some code or some class here and there, it's really annoying... The instructor talks a little fast, but his accent is good, so you can understand what he talks (but sometimes has to listen more than once).
By Franz Roberto Arratia López on 12/28/2017
I expected more from the course, for me this was really basic and incomplete. Many of the examples were not completed and were not explained in detail. It would also be interesting to have more real examples, since the examples that were used are really very basic. On the other hand, I have almost complete information about what I personally will have to investigate based on all the material provided in the course.
By p g on 8/3/2017
I am an experienced developer but relatively new to .net world, did this course to check out the standard practices and tools used. The course is exactly what I was looking for. Dmitri is excellent and is a fantastic tutor.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 84 / 100












