FunctionChecks<T> extension

on

Methods

returnsNormally() → Subject<T>

Available on Subject<T Function()>, provided by the FunctionChecks extension

Expects that the function returns without throwing.
throws<E>() → Subject<E>

Available on Subject<T Function()>, provided by the FunctionChecks extension

Expects that a function throws synchronously when it is called.