Table of Contents

Method ForIncompatibleType

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

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