Table of Contents

Class BooleanAssertExtensions

Namespace
MADE.Testing
Assembly
MADE.Testing.dll

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

value bool

The value to test.

Exceptions

AssertFailedException

Thrown if the value is 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

value bool

The value to test.

Exceptions

AssertFailedException

Thrown if the value is false.