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
expectedTypeThe type of the event args that was expected
actualTypeThe type of the event args that was actually raised