你的位置: 码友网首页 / 资讯源列表 / Grouping Assertions in Tests

关于[Grouping Assertions in Tests]的摘要:

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.

原文地址: https://ardalis.com/grouping-assertions-in-tests/

收录时间: 2021-09-30 浏览量: 1666 分类: .NET

| 0 收藏 | 0