Unit Testing .NET Applications with xUnit .net and NUnit
- Development
- Apr 20, 2025

Unit Testing .NET Applications with xUnit .net and NUnit, available at $59.99, has an average rating of 4.45, with 63 lectures, 2 quizzes, based on 3881 reviews, and has 15295 subscribers.
You will learn about Writing flexible and accurate unit test with xUnit and NUnit Writing unit tests using the Mocking technique in xUnit and NUnit Writing unit tests for legacy (old) applications Test Driven Development (TDD) with xUnit and NUnit Measuring the unit test coverage Using AI to produce unit tests automatically This course is ideal for individuals who are C#, VB .Net or F# progrmmers or .NET Core programmers or Testers and QA Engineers It is particularly useful for C#, VB .Net or F# progrmmers or .NET Core programmers or Testers and QA Engineers.
Enroll now: Unit Testing .NET Applications with xUnit .net and NUnit
Summary
Title: Unit Testing .NET Applications with xUnit .net and NUnit
Price: $59.99
Average Rating: 4.45
Number of Lectures: 63
Number of Quizzes: 2
Number of Published Lectures: 63
Number of Published Quizzes: 2
Number of Curriculum Items: 65
Number of Published Curriculum Objects: 65
Original Price: A$29.99
Quality Status: approved
Status: Live
What You Will Learn
Who Should Attend
Target Audiences
If you’re a .NET developer looking to improve the quality and reliability of your code, then this online course on Unit Testing in .NET and C# with xUnit and NUnitis perfect for you!
Both xUnit and NUnit are widely used by the .NET developer community, and developers often need to know both frameworks and use them simultaneously. Knowing xUnit and NUnit in detail also helps you choose the writing framework for your team company.
In this course, you’ll learn everything you need about xUnit .net and NUnit and their usage in the latest dotnet version, including how to write practical unit tests using the xUnit or NUnit and the MOQ framework. You’ll also learn about Test Driven Development (TDD) and how to properly apply it to your projects.
But that’s not all—we’ll also cover unit testing legacy code, a crucial skill for any developer who wants to maintain and improve existing codebases. There is even a lecture to show you how to use Generative AI to automatically produce unit tests for your code, saving time and maximising your test coverage.
We’ve included interview questions and answers related to unit testing and NUnit to ensure you’re fully prepared for any job interviews.
So don’t wait – enrol now and start mastering unit testing with xUnit and NUnit today!
Course Curriculum
Chapter 1: Introduction
Lecture 1: What is Unit Testing?
Chapter 2: Unit Testing with xUnit
Lecture 1: What is XUnit .Net?
Lecture 2: Features of XUnit .Net
Lecture 3: Writing your first Unit Test in XUnit .Net
Lecture 4: Execute Unit Tests in Visual Studio
Lecture 5: Execute Unit Tests via Command Line
Lecture 6: Execute Unit Tests with ReSharper
Lecture 7: Phases of Unit Testing
Lecture 8: The Assert Phase
Lecture 9: Asserting numeric values
Lecture 10: Asserting string values
Lecture 11: Asserting boolean values as well as null values
Lecture 12: Asserting Collections
Lecture 13: Asserting a range of values
Lecture 14: Asserting Exceptions
Lecture 15: Asserting object types
Lecture 16: Collections and Traits
Lecture 17: Constructors and IDisposable
Lecture 18: Class Fixtures and IClassFixture
Lecture 19: Collection Definition
Lecture 20: Parallel Execution of Tests
Lecture 21: Data Driven Tests in XUnit .net and the Theory attribute
Lecture 22: Passing parameters to unit tests with inline attributes
Lecture 23: Sharing test data across multiple unit test methods
Lecture 24: Passing parameters to unit tests from external resources
Lecture 25: Sharing test data across multiple unit test methods with custom attributes
Lecture 26: Introduction to MOQ and its relation to xUnit
Lecture 27: What is Mocking ?
Lecture 28: Creating the xUnit Test Project
Lecture 29: Writing our first test with Mock and xUnit
Lecture 30: Testing when ModelState is invalid
Lecture 31: Setting Up the Mocked Objects
Lecture 32: Writing a Test with Arrange, Act and Assert Format
Lecture 33: Introduction to Unit Testing and Legacy Code
Lecture 34: The Sprout Method Technique
Lecture 35: The Sprout Class Technique
Lecture 36: Introduction to Test Driven Development
Lecture 37: Test Driven Development with xUnit.net
Lecture 38: Measuring Unit Test Coverage in xUnit.net
Chapter 3: Unit Testing with NUnit
Lecture 1: What is NUnit?
Lecture 2: Writing The First Test with NUnit: Arrange, Act, Assert.
Lecture 3: The TestFixture Attribute
Lecture 4: Test Methods Naming Conventions
Lecture 5: Simple Asserts
Lecture 6: Handling Exceptions
Lecture 7: Working with Types (IsInstanceOf and IsAssingableFrom methods)
Lecture 8: The StringAssert Class
Lecture 9: The CollectionAssert Class
Lecture 10: Asserting with Constraints
Lecture 11: TestFixture – Advanced
Lecture 12: Setup and TearDown
Lecture 13: The TestCase Attribute – Passing values to parametrised test methods.
Lecture 14: Grouping Asserts Together
Lecture 15: Intriduction to Mocking and MOQ
Lecture 16: The Personal Photos Project
Lecture 17: Testing an ASP.NET MVC Action with MOQ Framework and NUnit
Lecture 18: Testing an async ASP.NET MVC Action with Mock
Lecture 19: Using Setup and Return with MOQ
Lecture 20: Introduction to Test-Driven Development (TDD)
Lecture 21: TDD Demo – Writing C# Code with TDD Technique
Lecture 22: The Common Technique of Testing a Legacy (Old) Code
Lecture 23: Testing a Legacy Code in Action
Chapter 4: Interview Questions
Chapter 5: Bonus Lectures
Lecture 1: Bonus: Using AI for Generating Unit Tests Automatically
Instructors

Aref Karimi
Technology Leader and Evangalist
Rating Distribution
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
- Random Picks
- Popular
- Hot Reviews
- Discover Life Purpose with NLP
- From Rat to Human- The Financial Freedom Mindset
- Introduction to Trading Psychology and Mindset
- Amazon Affiliate Marketing- Amazon FBA - Kindle (KDP) - ACX
- Step by Step Course on How to Build Lead Generation Machine
- Advanced Photoshop Manipulations Tutorials Bundle
- Life Insurance Annuity Ultimate Buyer’s Guide
- The Beginner Forex Trading Playbook
- 1YouTube Masterclass The Best Guide to YouTube Success
- 2Photoshop CC- Adjustement Layers, Blending Modes Masks
- 3Personal Finance
- 4SolidWorks Essential Training ( 2023 2024 )
- 5The Architecture of Oscar Niemeyer
- 6Polymer Clay Jewelry Making Techniques for Beginners
- 7Advanced Photoshop Manipulations Tutorials Bundle
- 8SEO for Web Developers
- 1Linux Performance Monitoring Analysis Hands On !!
- 2Content Writing Mastery 1- Content Writing For Beginners
- 3Media Training for PrintOnline Interviews-Get Great Quotes
- 4Learn Facebook Ads from Scratch Get more Leads and Sales
- 5The Complete Digital Marketing Course Learn From Scratch
- 6C#- Start programming with C# (for complete beginners)
- 7[FREE] How to code 10 times faster with Emmet
- 8Driving Results through Data Storytelling