Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Improving Unit Tests with Fluent Assertions

via Pluralsight

Overview

Waste less time debugging failing tests by improving test failure messages, with the added benefit of making your test code more readable and maintainable, by using the Fluent Assertions library.

When tests fail it can be hard to understand exactly what caused the failures. If test failure messages are ambiguous or not detailed enough you sometimes have to fire up the debugger and run the test in debug mode just to find out what the failure was. In this course, Improving Unit Tests with Fluent Assertions 5, you will learn foundational knowledge of Fluent Assertions. First, you will discover how to improve the readability of your test code. Next, you will explore the different ways to assert on different result types such as strings, floating point numbers, collections, and exceptions. Finally, you will gain an understanding of how to improve test failure messages to reduce the need to waste time debugging through failing tests. When you are finished with this course, you will have the skills and knowledge of Fluent Assertions needed to improve readability and test failure messages for automated tests.

Syllabus

  • Course Overview 1min
  • Improving Unit Tests with Fluent Assertions 38mins

Taught by

Jason Roberts

Reviews

4.9 rating at Pluralsight based on 113 ratings

Start your review of Improving Unit Tests with Fluent Assertions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.