FutureExpector extension

Expectations for Future.

on

Properties

completes Future<void>
Checks that the tested future completes successfully with any value.
no setter
doesNotComplete → void
Checks that the tested future does not complete.
no setter
throws Future<Expector<Object>>
Checks that the tested future completes with an error.
no setter

Methods

throwsA<T>() Future<Expector<T>>
Checks that the tested future completes with an error of type T.