Featured resource
pluralsight tech forecast
2025 Tech Forecast

Which technologies will dominate in 2025? And what skills do you need to keep up?

Check it out
Hamburger Icon
  • Course
    • Libraries: If you want this course, consider one of these libraries.
    • Core Tech

Testing .NET Code with xUnit.net 2

Learn how to get started writing .NET tests using the open source xUnit.net 2 testing framework.

Jason Roberts - Pluralsight course - Testing .NET Code with xUnit.net 2
by Jason Roberts

What you'll learn

xUnit.net 2 is a modern, extensible, multi-platform testing framework for .NET. Currently being used by the Microsoft ASP.Net 5 development team, xUnit.net allows the creation, execution, and customization of automated tests such as unit, integration, and, when combined with other libraries, even automated UI tests. In this course, you'll learn about the features of xUnit.net 2 and learn how to write and run tests in Visual Studio Test Explorer, ReSharper, and from the command line. You'll learn to write test asserts against different types of objects, including how to assert against floating point values, collections, and how to check that exceptions are thrown when expected. The course also covers how to customize the test execution life cycle and how data driven tests can reduce the amount of test code that needs to be written and help reduce test maintenance costs.

Table of contents

About the author

Jason Roberts - Pluralsight course - Testing .NET Code with xUnit.net 2
Jason Roberts

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More Courses by Jason