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
typeTypeThe inner type of the value
actualT?The actual non-
nullvalue
Returns
Type Parameters
T