LoginSignup
0
0

More than 5 years have passed since last update.

TestObserver 的 assertResult 與 assertValue

Posted at

如果用了這個 operator 的話,代表會期待待測對象一定會有 onComplete 的事件丟出來,否則就會造成錯誤。

如果期待這個 sequence 不應該被結束,就應該要使用 .assertValue()
更進一步要加上確認這個 sequence 不應該被結束的話,就可以再追加 assertNotComplete()

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0