public async Task RemoteProxyBase_OnError() { var mre = new ManualResetEvent(false); var svc = new TestService(mre); var proxy = new TestProxy(svc); var error = new Exception(); var t = proxy.OnErrorAsync(error); try { await t; } catch (AggregateException ex) { Assert.AreSame(error, ex.InnerException); } }