Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚开始使用 Pex 并遇到标题中描述的问题。似乎 Pex 生成或手动添加的任何参数化测试都会为导致引发异常的任何输入创建失败的测试用例。有没有办法让我指出某些输入应该引发异常,因此不会导致特定测试失败?
如果您选择测试失败,则有一个“允许异常”选项告诉 pex 异常是正确的行为。