c# - How do I assert that an Observable doesn't push any item? -


i know how unit test sequences observable.never.

how can sure nothing pushed sequence?

you cannot sure nothing ever pushed observable, because equivalent solving halting problem, impossible. is: want know if program ever terminate (something pushed) or run forever (nothing ever pushed).

the best can check if nothing pushed during arbitrary timeout of choice.

that said - don't need test observable.never anyway. if have real code observable should never push items - please show in question.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -