Improving Unit Tests with Fluent Assertions 5
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.
What you'll learn
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.
Table of contents
- Version Check 0m
- Introduction 4m
- Using Fluent Assertions with Strings 6m
- Asserting against Numerical Values 3m
- Adding Additional Custom Message Text 2m
- Working with Date Values 4m
- Asserting on the Contents of Collections 5m
- Asserting That Exceptions Are Thrown 3m
- Executing All Assertions When a Test Fails 4m
- Asserting on Structural Integrity of Source Code 5m
- Summary and Further Learning 3m