Class IsNotTypeException
Exception thrown when Assert.IsNotType fails.
public class IsNotTypeException : XunitException, ISerializable, IAssertionException
- Inheritance
-
IsNotTypeException
- Implements
- Inherited Members
Methods
ForCompatibleType(Type, Type)
Creates a new instance of the IsNotTypeException class to be thrown when the object is a compatible type.
public static IsNotTypeException ForCompatibleType(Type expectedType, Type actualType)
Parameters
Returns
ForExactType(Type)
Creates a new instance of the IsNotTypeException class to be thrown when the object is the exact type.
public static IsNotTypeException ForExactType(Type type)
Parameters
typeTypeThe expected type