gpt4 book ai didi

c# - Assert.IsTrue(false) 正在通过

转载 作者:太空狗 更新时间:2023-10-29 20:04:15 32 4
gpt4 key购买 nike

Assert.IsTrue(false) 不应该抛出异常吗?

enter image description here

最佳答案

Assert.Pass 抛出 SuccessException

http://www.nunit.org/index.php?p=utilityAsserts&r=2.5

这就是为什么 Assert.IsTrue 不执行

关于c# - Assert.IsTrue(false) 正在通过,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40250092/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com