We may earn an affiliate commission when you visit our partners.
David Davis, Jason Roberts, Vlad Catrinescu, Matthew Renze, Vladimir Khorikov, Thomas Claudius Huber, and Mel Grubb

Unit testing has become standard practice for today's software developers and xUnit is one of the most popular unit testing frameworks available for .NET. The goal of this learning path is to help you understand how to write clean, testable code, all the way from writing your first test to mocking out dependencies to developing a pragmatic suite of unit tests for your application.

Enroll now

Share

Help others find Paths from Pluralsight by sharing it with your friends and followers:

What's inside

Five courses

Testing .NET Code with xUnit.net 2: Getting Started

(2 hours)
xUnit.net is a modern testing framework used by the .NET development team. This course teaches you how to get started writing xUnit.net automated tests to verify your application is working as expected and help prevent costly bugs.

Mocking with Moq 4 and xUnit

(2 hours)
Writing unit tests is hard when dependencies between classes make it tough to separate what's being tested from the rest of the system. Moq, the most popular mocking library for .NET, makes it easy to create mock dependencies to make testing easier.

Creating Maintainable Contexts for Automated Testing

(1 hours)
Learn how to create effective and maintainable test contexts that guide your team. Use Object Mother and Object Builder patterns to keep contexts focused on relevant details.

Test Driven Development in C# 8

(2 hours)
Test Driven Development (TDD) is a powerful approach to build solid and robust software. This course teaches you how to use TDD in C# to test and implement new features in your .NET projects.

Writing Testable Code

(2 hours)
In this course, you'll learn how to write code that is easy to test. These skills will make practices like unit testing and test-driven development easier to accomplish. Testable code is code that makes automated testing quick, easy, and enjoyable.

Learning objectives

  • Creating unit tests using xunit
  • Running unit tests from visual studio
  • Mocking dependencies using the moq framework
  • Validating method calls using the moq framework
  • Creating partial mock classes
  • Writing testable code
  • Build a unit testing suite for your application
  • How to use autofixture to create test data

Save this collection

Save C# Unit Testing with xUnit to your list so you can find it easily later:
Save
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser