Table of Contents

Class IsNotAssignableFromException

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

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)

Parameters

expected Type

The expected type

actual object

The actual object value

Returns

IsNotAssignableFromException