rx_bloc_test library

Functions

rxBlocFakeAsyncTest<B extends RxBlocTypeBase, StateOutputType>(String message, {required B build(), required Stream<StateOutputType> state(B), required Iterable expect, void act(B, FakeAsync fakeAsync)?, Duration? wait, int skip = 0}) → void
Creates a new test for a specific bloc state. rxBlocFakeAsyncTest will create the specific test and initialize it's state as well perform all the necessary operations based on provided parameters before expecting the desired values.
rxBlocTest<B extends RxBlocTypeBase, StateOutputType>(String message, {required Future<B> build(), required Stream<StateOutputType> state(B), required Iterable expect, Future<void> act(B)?, Duration? wait, int skip = 0}) → void
Creates a new test for a specific bloc state. rxBlocTest will create the specific test and initialize it's state as well perform all the necessary operations based on provided parameters before expecting the desired values. rxBlocTest will ensure that no additional states are emitted by closing the states stream just before the evaluation.