Table of Contents

Class ObjectAssertExtensions

Namespace
MADE.Testing
Assembly
MADE.Testing.dll

Defines a code assertion helper for object-based scenarios.

public static class ObjectAssertExtensions
Inheritance
ObjectAssertExtensions
Inherited Members

Methods

ShouldBeNull(object?)

Tests whether the specified value is null and throws an exception if it is not null.

public static void ShouldBeNull(this object? value)

Parameters

value object

The value to test.

Exceptions

AssertFailedException

Thrown if the value is not null.

ShouldNotBeNull(object?)

Tests whether the specified value is not null and throws an exception if it is null.

public static void ShouldNotBeNull(this object? value)

Parameters

value object

The value to test.

Exceptions

AssertFailedException

Thrown if the value is null.