Table of Contents

Method ForIncompatibleType

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

ForIncompatibleType(string, string?)

Creates a new instance of the IsTypeException class to be thrown when an object was not compatible with the given type

public static IsTypeException ForIncompatibleType(string expectedTypeName, string? actualTypeName)

Parameters

expectedTypeName string

The expected type name

actualTypeName string

The actual type name

Returns