Skip to content

Boolean assertions

Wesley Baartman edited this page May 30, 2019 · 7 revisions

Home > Assertions > Object assertions > Boolean assertions

Introduction

This page will contain documentation for all assertions made about booleans. These assertions extend the assertions found at the Object assertions page.

Requirements

Using these assertions requires the following package to be installed in your project: AssertNet

Assertions

IsTrue()

Description

Checks if a boolean value is true.

Examples
bool isOn = true;
AssertThat(isOn).IsTrue();
IsFalse()

Description

Checks if a boolean value is false.

Examples
bool isOn = false;
AssertThat(isOn).isFalse();