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
Post a Comment