Class NotNullException
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
typeTypeThe inner type of the value
Returns
ForNullValue()
Creates a new instance of the NotNullException class to be
thrown when a reference value is null.
public static NotNullException ForNullValue()