Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assert.IsTrue(false) is passing

Shouldn't Assert.IsTrue(false) throw an exception?

enter image description here

like image 671
User Avatar asked Oct 25 '16 21:10

User


1 Answers

Assert.Pass throws SuccessException

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

and that's why Assert.IsTrue doesn't execute

like image 70
Dmitry Bychenko Avatar answered Oct 05 '22 07:10

Dmitry Bychenko