简体   繁体   English

Assert.IsTrue(false)正在传递

[英]Assert.IsTrue(false) is passing

Shouldn't Assert.IsTrue(false) throw an exception? 不应该Assert.IsTrue(false)抛出异常?

在此输入图像描述

Assert.Pass throws SuccessException Assert.Pass抛出SuccessException

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

and that's why Assert.IsTrue doesn't execute 这就是Assert.IsTrue 不执行的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM