public void ErrorLoadingBundle_ReturnInvalidOperationException() { CreateFixture(); SetupLoaderReturn(Observable.Throw <IBundle>(new InvalidOperationException())); SetupBundleReturn(Observable.Return(new AssetBundleManifest())); Assert.Throws <InvalidOperationException>(() => _fixture.Load().Wait()); _innerLoader.Received(1).Load <IBundle>(Arg.Any <Uri>()); _bundle.DidNotReceive().LoadAsset <AssetBundleManifest>(Arg.Any <string>()); }