Class NullException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Null fails.
public class NullException : XunitException, ISerializable, IAssertionException
- Inheritance
-
NullException
- Implements
- Inherited Members
Methods
- ForNonNullPointer(Type)
Creates a new instance of the NullException class to be thrown when the given pointer value was unexpectedly not null.
- ForNonNullStruct<T>(Type, T?)
Creates a new instance of the NullException class to be thrown when the given nullable struct was unexpectedly not null.
- ForNonNullValue(object)
Creates a new instance of the NullException class to be thrown when the given value was unexpectedly not null.