Hi,
Does NUnit have an Assert method that returns a bool? They all return void. I am using version 2.5.3
Thanks
Hi,
Does NUnit have an Assert method that returns a bool? They all return void. I am using version 2.5.3
Thanks
All members of the Assert class are voids. For each void, if the assertion is incorrect an NUnit.Framework.AssertionException is thrown.
I suppose you could write your own wrappers around these voids that returned true if no exception was thrown and caught any exception and returned false, but I'm not sure what functionality this would give you.
Can you explain what you are trying to achieve that requires an assertion to return a bool?