Grouping Assertions in Tests

added by DotNetKicks
9/29/2021 5:29:22 AM

337 Views

Although it's generally considered a best practice to assert only one thing per test, sometimes one logical "thing" may require multiple assertion statements to be executed. In such cases, it's helpful to be able to see all of the parts of the larger assertion that failed, so you don't end up chasing after them one by one.


0 comments