Table of Contents

Method ForIncorrectType

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

ForIncorrectType(Type, Type)

Creates a new instance of the RaisesException class to be thrown when the raised event wasn't the expected type.

public static RaisesException ForIncorrectType(Type expected, Type actual)

Parameters

expected Type

The type of the event args that was expected

actual Type

The type of the event args that was actually raised

Returns