Table of Contents

Class IsTypeException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

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

ForMismatchedType(string, string?)

Creates a new instance of the IsTypeException class to be thrown when an object did not exactly match the given type