Class IsTypeException
Exception thrown when Assert.IsType fails.
public class IsTypeException : XunitException, ISerializable, IAssertionException
- Inheritance
-
IsTypeException
- Implements
- Inherited Members
Methods
ForIncompatibleType(string, string?)
Creates a new instance of the IsTypeException class to be thrown when an object was not compatible with the given type
public static IsTypeException ForIncompatibleType(string expectedTypeName, string? actualTypeName)
Parameters
Returns
ForMismatchedType(string, string?)
Creates a new instance of the IsTypeException class to be thrown when an object did not exactly match the given type
public static IsTypeException ForMismatchedType(string expectedTypeName, string? actualTypeName)