unexpectedException
Returns a behavior where an unexpected exception was thrown.
Return
the behavior
Parameters
<T>
the type of the expected exception
Returns a behavior where an unexpected exception was thrown.
the behavior
the type of the expected exception