Testing .NET Code with xUnit.net 2

Learn how to get started writing .NET tests using the open source xUnit.net 2 testing framework.
Course info
Rating
(140)
Level
Intermediate
Updated
Jun 13, 2015
Duration
2h 39m
Table of contents
Introducing xUnit.net
Asserting Test Results
Controlling the Test Execution Lifecycle
Reduced Code and Improved Maintainability with Data Driven Tests
Migrating to xUnit.net from NUnit and MSTest
Description
Course info
Rating
(140)
Level
Intermediate
Updated
Jun 13, 2015
Duration
2h 39m
Description

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.

About the author
About the author

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

More from the author
Error Handling in C# with Exceptions
Intermediate
1h 37m
6 Aug 2018
Automated Testing with MSTest V2
Intermediate
2h 2m
18 May 2018
More courses by Jason Roberts