Table of Contents

Class IsAssignableFromException

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

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)

Parameters

expected Type

The expected type

actual object

The actual object value

Returns

IsAssignableFromException