Skip to content

BooleanExtensions Class ​

Definition ​

Extension methods that provide boolean-specific assertions for nullable boolean values.

c#
public static class BooleanExtensions

View source

Methods ​

NameDescription
BeFalse(ObjectAssertions<Boolean?>)Asserts that the nullable boolean value is false.
BeTrue(ObjectAssertions<Boolean?>)Asserts that the nullable boolean value is true.
NotBeFalse(ObjectAssertions<Boolean?>)Asserts that the nullable boolean value is not false.
NotBeTrue(ObjectAssertions<Boolean?>)Asserts that the nullable boolean value is not true.