FunctionExpector extension

Expectations for Function.

on

Properties

throws Future<Expector<Object>>
Checks that the execution of the tested function throws.
no setter

Methods

returnsNormally() Future<void>
Checks that the execution of the tested function returns normally.
throwsA<T>() Future<Expector<T>>
Checks that the execution of the tested function throws an error of type T.