User User - 7 months ago 71
C# Question

Assert.IsTrue(false) is passing

Shouldn't

Assert.IsTrue(false)
throw an exception?

enter image description here

Answer

Assert.Pass throws SuccessException

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

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