public void ProxyConnectionIsLost_SayCallThrows() { var channel = new TestChannel(); var proxyConnection = TntBuilder .UseContract <ITestContract>() .UseReceiveDispatcher <NotThreadDispatcher>() .UseChannel(channel) .Build(); channel.ImmitateConnect(); channel.ImmitateDisconnect(); TestTools.AssertThrowsAndNotBlocks <ConnectionIsLostException>(() => proxyConnection.Contract.Say()); }