Class NullException
Exception thrown when Assert.Null fails.
public class NullException : XunitException, ISerializable, IAssertionException
- Inheritance
-
NullException
- Implements
- Inherited Members
Methods
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
ForNonNullValue(object)
Creates a new instance of the NullException class to be thrown when the given value was unexpectedly not null.
public static NullException ForNonNullValue(object actual)
Parameters
actualobjectThe actual non-
nullvalue