Table of Contents

Method ForCompatibleType

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

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