public void Cast_ArgumentChecking() { ReactiveAssert.Throws <ArgumentNullException>(() => Observable.Cast <bool>(default(IObservable <object>))); ReactiveAssert.Throws <ArgumentNullException>(() => Observable.Cast <bool>(DummyObservable <object> .Instance).Subscribe(null)); }