Table of Contents

Method Null

Namespace
Xunit
Assembly
xunit.v3.assert.dll

Null(object?)

Verifies that an object reference is null.

public static void Null(object? @object)

Parameters

object object

The object to be inspected

Exceptions

Thrown when the object reference is not null

Null<T>(T?)

Verifies that a nullable struct value is null.

public static void Null<T>(T? value) where T : struct

Parameters

value T?

The value to be inspected

Type Parameters

T

Exceptions

Thrown when the value is not null