NUnit Unit Testing C# Masterclass - Write Unit Test Today!
3.9 (3 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
22 students enrolled

NUnit Unit Testing C# Masterclass - Write Unit Test Today!

Acquire all the practical skills you need to work as a .net unit testing expert using NUnit, Visual Studio, Moq & more.
3.9 (3 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
22 students enrolled
Last updated 11/2019
English
Current price: $125.99 Original price: $179.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2.5 hours on-demand video
  • 1 article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Learn all the basic concepts of Unit Testing using the NUnit Framework, Moq and Visual Studio. Eg. how to write unit tests, mocking and more...
  • Learn and understand the fundamental concepts of test driven development
  • Learn the fundamental concepts, best practices and industry standards for Unit testing
  • Learn how to use Microsoft Visual Studio for writing unit tests
  • Learn how to create Mocks using Moq Framework
  • Lots of practical demonstrations and exercises along the way for you to test your new unit testing skills
  • A lot more... everything is covered step by step. I'll be ready to answer your questions in the course Q&A as well.
Course content
Expand all 34 lectures 02:30:35
+ Writing and Debugging Unit tests
6 lectures 30:29
Unit Testing Frameworks and NUnit
05:17
Writing your first unit test
04:15
Debugging and running tests
03:55
Best Practices and naming conventions
04:46
Setting up Example project for unit tests
03:06
Programmer and SDET writing unit tests
09:10
+ NUnit Framework Part 1
6 lectures 22:40
What is NUnit?
05:53
Setup and installation using Visual Studio 2019
03:49
NUnit Test Adapter for Visual Studio
02:12
Attributes
03:54
+ NUnit Framework Part 2
6 lectures 22:59
Setup and Teardown attributes
02:39
Assertions
03:16
Mocks and Stubs
03:23
Test Fixture Data
04:09
Unit Testing Best Practices
05:10
Arrange Act and Assert
04:22
+ Running Unit Tests
6 lectures 18:51
Console Runner
03:06
Console Command Line
03:17
NUnit Lite runner
02:45
GUI runner
03:09
pNUnit runner
02:03
Advanced topics
04:31
+ Moq Framework and dotMemoryUnit
6 lectures 39:44
What is Moq Mocking framework?
06:59
Example project setup for mocking
06:13
Installing and running tests with mocks
07:45
Other Mock frameworks
04:30
dotMemoryUnit for memory related unit testing
05:03
+ Conclusion
2 lectures 04:26
Conclusion
04:22
Bonus lecture
00:04
Requirements
  • A PC running Microsoft Windows
  • Microsoft Visual Studio (I will show you where to download and how to install)
  • Basic understanding of the fundamentals of programming
Description

THE BEST DEDICATED COURSE FOR ACQUIRING PRACTICAL UNIT TESTING SKILLS USING NUNIT, MOQ  & MICROSOFT VISUAL STUDIO

The primary goal of this course is to teach you everything you need to use Microsoft Visual Studio with NUnit and Moq to write and run unit tests and improve your code efficiency.

I will teach you the fundamental concepts of test-driven development.

Along the course, I will give you practical demonstrations and exercises for you to train your new unit testing skills.


The course will cover topics like:

  • What is unit testing and what is it good for

  • How to install and configure Microsoft Visual Studio and NUnit

  • What are Unit Testing Frameworks

  • What is NUnit

  • How to add NUnit framework to a project

  • Writing your first test

  • Debugging and running tests

  • Mocks and Stubs

  • Arranging Act & Assets

  • What is Moq Mocking framework?

  • Much more...


When you are finished with this course, you will have acquired practical unit testing skills and know-how to write unit tests using the Microsoft Visual Studio, NUtit, Moq Mocking framework and more.

you will have laid the foundation for your future development career with your new skills in unit testing.  

I look forward to meeting you in the course forum where I'll be available to help you along the way and answer questions that you might have.


WHAT IS UNIT TESTING / NUNIT / MOQ / VISUAL STUDIO?

Unit testing is a concept where you test your code at the smallest level possible.
It is similar to how cars are tested. When you are developing different parts for a car, you have to test each part in isolation to verify whether it is working as expected or not. Once the test of that part runs clear, it is then integrated with the other components of the car to verify the integration.

The same is true for software code where we need to test out functionality at the unit/class/interface/method level to ensure that everything is working as intended.

NUnit is a test Framework like JUnit, where you can define your tests cases, tests suites and assertions.
If you have a new project that uses .NET programming languages and you want to add unit tests, you can use open source NUnit. NUnit can run all the tests and show you a report

Moq is a mocking framework for C#/.NET. It is used in unit testing to isolate your class under test from its dependencies and ensure that the proper methods on the dependent objects are being called.

Microsoft Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), console, Web applications, web apps, mobile apps, cloud, and web services, etc. With the help of this IDE, you can create managed code as well as native code


TOP 3 BENEFITS OF LEARNING UNIT TESTING

1: High demand. The most searched keyword by recruiters searching for developers is "unit testing"

2: A job requirement. Test-driven development skills are required by most top companies when hiring

3: Job promotion leverage. If you learn practical NUnit unit testing skills, you will have a leg up amongst your colleagues and be at a better position to negotiate a promotion or pay raise.


FREQUENTLY ASKED QUESTIONS

How can I benefit from this course? 
You can benefit from this by completing it and then sharing it on your professional platforms and adding it to your LinkedIn certifications. This way, when recruiters search for "NUnit" and "unit testing" as keywords, your profile will show up and they will contact you.

What do I need to get the most out of the lessons? 
Firstly, you need to have a basic understanding of the fundamentals of programming. Secondly, you need the motivation to learn new concepts and improving your skillset. If you have these things, the course will be a good learning experience for you.


GUARANTEE

If within 30 days of buying the course you decide that it's not for you, please get a refund. We only want happy students.


ARE YOU READY TO LEARN PRACTICAL UNIT TESTING SKILLS WITH VISUAL STUDIO AND NUNIT?

Please press the "Take This Course" button and start learning 2 minutes from now!

Who this course is for:
  • .NET developers that wants to learn how to use the popular unit test framework NUnit
  • Any developer interested in learning Unit Testing fundamentals