Method ForUnexpectedEvent
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForUnexpectedEvent()
Creates a new instance of the NotRaisesException class to be thrown when an unexpected event was raised.
public static NotRaisesException ForUnexpectedEvent()
Returns
ForUnexpectedEvent(Type)
Creates a new instance of the NotRaisesException class to be thrown when an unexpected event (with data) was raised.
public static NotRaisesException ForUnexpectedEvent(Type unexpected)
Parameters
unexpectedTypeThe type of the event args that was unexpected