Slide 115
Slide 115 text
class Assertions (val inputs : Inputs, val output : Output) {
fun loadThenShowResults() = Completable.fromCallable {
inputs.writeIntoSearchBox(“Camera“)
val states = output.renderedStates()
val loading = SearchViewState(true, null, null)
val results = SearchViewState(false, someProducts, null)
val expectedStates = listOf(loading, results)
assertEquals(expectedStates, states)
}
}