Write custom Assertions to improve your tests

from blog Just Some Code, | ↗ original
Last time, we went through some best practices to write better assertions on our tests. This time, let’s focus on how to use custom assertions to improve the readability of our tests. Use custom assertions to encapsulate multiple assertions on a single method and express them in the same language as the domain model. Write custom assertions with...