What Will You Learn Inside?

Catch Defects Early

Catch regressions instantly, refactor your C# code with confidence and cut bug fixing costs using VS Code and Visual Studio.

alternative
alternative

Use The Most Loved Test Framework

Unlock the power of xUnit, the modern .NET test framework that lets you write cleaner and more intuitive tests.

Write Maintainable Tests

Structure your tests following best practices and use FluentAssertions so your test code reads like plain English.

alternative
alternative

Create Fast And Reliable Tests

Use NSubstitute and Moq to isolate dependencies and ensure your tests are always fast and 100% reliable.

What You Get When You Enroll

alternative
alternative
Signature Online Video Training

Lifetime access to professionally recorded high quality video training that you can take at your own pace, anywhere and from any device.

Beautifully Illustrated Handouts

Includes all diagrams from every slide deck presented across the course, so you can reference them any time.

Full Source Code

Full source code linked to every coding lesson so you can easily compare and troubleshoot.

Step By Step Lesson Scripts

Speed up your learning with the exact written steps the instructor follows during the videos.

Full English captions

In case you need them, English captions can be turned on quickly for any of the lessons.

Course Curriculum

01 Welcome to the course! 5 lessons
  • Course introduction
  • Course outline
  • Is this course for you?
  • Software prerequisites
  • Source code and other resources
02 Introduction to unit testing 5 lessons
  • What is automated testing?
  • Types of tests
  • What is unit testing?
  • Do I need unit tests?
  • How many tests should I have?
03 Getting started with unit testing 6 lessons
  • Choosing a unit testing framework
  • Setting up VS Code for unit testing
  • Write your first unit test
  • Running your unit test
  • Debugging your unit test
  • Unit testing with Visual Studio
04 Making unit tests work for you 5 lessons
  • Unit test naming
  • Using the AAA pattern
  • Testing all code paths
  • Catching a regression
  • Refactoring with confidence
05 Writing tests with xUnit 5 lessons
  • The xUnit test lifecycle
  • Getting test output
  • Writing parameterized tests
  • Ignoring tests
  • Testing internal methods
06 Essential assertion techniques 6 lessons
  • Asserting numbers, strings and dates
  • Using FluentAssertions
  • Asserting objects
  • Asserting collections
  • Asserting exceptions
  • Asserting raised events
07 Dealing with dependencies 7 lessons
  • The problem with dependencies
  • Refactoring towards loose coupling
  • Using test doubles
  • Stubs vs mocks
  • Stubbing with NSubstitute
  • Mocking with NSubstitute
  • Stubbing and Mocking with Moq

Course Preview

Who Is This Course For?

  • C# developers of any level with little or no experience on unit testing.
  • Any software developer that wants to solidify their fundamentals of unit testing.

More Happy Customers

Unlock C# Unit Testing Essentials Today

This Course
All Courses
C# UNIT TESTING ESSENTIALS
$ 97
lifetime access

  • Signature online video training
  • Full source code
  • Beautifully illustrated handouts
  • Course certificate
  • Discord server access
ALL-ACCESS PASS
alternative
full course library

  • Instant access to the entire course library
  • Continuous access to new courses and updates
  • Low monthly fee
  • Course certificates
  • Discord server access
  • Cancel anytime

Meet Your Instructor

alternative

My name is Julio Casal. I'm a passionate software engineer with a wealth of experience building all sorts of applications and systems based on the .NET platform.

Throughout my 10+ years working at Microsoft, I had the opportunity to work on real-world projects, building and refining backend services that handle millions of requests every month.

I believe reducing complex concepts into simple step by step instructions is incredibly valuable and helps to make coding accessible and fun for everyone.

FAQs

When does the program start and finish?

C# Unit Testing Essentials is a completely self-paced online course. You decide when you start and when you finish.

How many hours of video content are included in this program?

The total video content time is 2.5 hours.

Do you offer a certification on course completion?

Yes, you will get a certificate at no additional cost after completing all the course lessons.

How long will I have access to the content?

Your enrollment includes unlimited lifetime access and free updates for life.

I have more questions!

Happy to help! Send me an email: [email protected]