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