Skip to content

BooleanAssertions Class ​

Definition ​

Provides assertions for boolean values.

c#
public sealed class BooleanAssertions : ObjectAssertions<BooleanAssertions, Boolean>

View source

Constructors ​

NameDescription
BooleanAssertions(Boolean)Provides assertions for boolean values.

Methods ​

NameDescription
BeFalse()Asserts that the boolean value is false.
BeTrue()Asserts that the boolean value is true.
NotBeFalse()Asserts that the boolean value is not false.
NotBeTrue()Asserts that the boolean value is not true.