public void AsyncReactiveObserverBase_OnError()
        {
            var s = new MyAsyncReactiveObserver <int>();

            var err = default(Exception);

            s.OnErrorAsyncImpl = (e, token) => { err = e; return(Task.CompletedTask); };

            var ex = new Exception();

            s.OnErrorAsync(ex).Wait();

            Assert.AreSame(ex, err);
        }
        public void AsyncReactiveObserverBase_OnError_ArgumentChecking()
        {
            var s = new MyAsyncReactiveObserver <int>();

            Assert.ThrowsException <ArgumentNullException>(() => s.OnErrorAsync(null).Wait());
        }