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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -