public void SendMessageClosesConnection()
        {
            var connector = new DummyConnector(new MemoryStream());
            var client    = new ConverseClient(connector);

            client.SendMessage("foo", Array.Empty <byte>());

            Assert.True(connector.ConnectedStream.IsDisposed);
        }
 public ConverseClientTests()
 {
     m_memStream = new MemoryStream();
     m_connector = new DummyConnector(m_memStream);
     m_client    = new ConverseClient(m_connector);
 }