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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -