public void Dispose() { var cs = new CompletableSubject(); var to = cs .OnErrorComplete() .Test(); Assert.True(cs.HasObserver()); to.Dispose(); Assert.False(cs.HasObserver()); }