filipradon
02/22/2019, 2:57 PMfirstOrError
to throw error if subject has no values.
@Test
fun `assert tha behaviour subject behaves like i would expect to behave`() {
BehaviorSubject.create<Boolean>()
.firstOrError()
.test()
.assertComplete()
}
starke
02/22/2019, 4:58 PMfilipradon
02/22/2019, 5:04 PMfirstOrError
-> i have troubles with understanding why it’s NOT throwing an error when there are no itemsstarke
02/22/2019, 5:21 PMfilipradon
02/22/2019, 6:24 PMstarke
02/22/2019, 8:45 PM