Table of Contents

Class NotNullException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

Exception thrown when Assert.NotNull fails.

public class NotNullException : XunitException, ISerializable, IAssertionException
Inheritance
NotNullException
Implements
Inherited Members

Methods

ForNullStruct(Type)

Creates a new instance of the NotNullException class to be throw when a nullable struct is null.

public static Exception ForNullStruct(Type type)

Parameters

type Type

The inner type of the value

Returns

Exception

ForNullValue()

Creates a new instance of the NotNullException class to be thrown when a reference value is null.

public static NotNullException ForNullValue()

Returns

NotNullException