Class IsAssignableFromException
Exception thrown when Assert.IsAssignableFrom fails.
public class IsAssignableFromException : XunitException, ISerializable, IAssertionException
- Inheritance
-
IsAssignableFromException
- Implements
- Inherited Members
Methods
ForIncompatibleType(Type, object?)
Creates a new instance of the IsTypeException class to be thrown when the value is not compatible with the given type.
public static IsAssignableFromException ForIncompatibleType(Type expected, object? actual)