Table of Contents

Method ForNonNullStruct

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

ForNonNullStruct<T>(Type, T?)

Creates a new instance of the NullException class to be thrown when the given nullable struct was unexpectedly not null.

public static Exception ForNonNullStruct<T>(Type type, T? actual) where T : struct

Parameters

type Type

The inner type of the value

actual T?

The actual non-null value

Returns

Exception

Type Parameters

T