public void when_disposing_channel_then_became_disconnected() { var configuration = new MqttConfiguration(); var stream = new PrivateStream(configuration); var channel = new PrivateChannel(stream, EndpointIdentifier.Server, configuration); channel.Dispose(); Assert.False(channel.IsConnected); }