Class BooleanAssertExtensions
Defines a code assertion helper for boolean-based scenarios.
public static class BooleanAssertExtensions
- Inheritance
-
BooleanAssertExtensions
- Inherited Members
Methods
ShouldBeFalse(bool)
Tests whether the specified value is false and throws an exception if it is true.
public static void ShouldBeFalse(this bool value)
Parameters
valueboolThe value to test.
Exceptions
- AssertFailedException
Thrown if the
valueis true.
ShouldBeTrue(bool)
Tests whether the specified value is true and throws an exception if it is false.
public static void ShouldBeTrue(this bool value)
Parameters
valueboolThe value to test.
Exceptions
- AssertFailedException
Thrown if the
valueis false.