Closed ValeriusGC closed 4 years ago
since your mockDataConnectionChecker.hasConnection answers Future.value(false) -> result
it's correct the test passes, because result (false) is same as your final tHasConnectionFuture = Future.value(false) .
expect(result, tHasConnectionFutureFalse);
It passed well with original
final tHasConnectionFuture = Future.value(true);
as well as withfinal tHasConnectionFuture = Future.value(**false**);
How so?