public void Server_ThrowsWithInner_EnsureInnerReceivedOnClient() { ITestContract client = CreateChannel(); Mock <ITestContract> server = Server(); server.Setup(v => v.SimpleMethod()).Throws(new CustomException("test message", new CustomException())); try { client.SimpleMethod(); } catch (CustomException e) { Assert.NotNull(e.InnerException as CustomException); } }