public void Dispose_DisposesKafkaConsumer() { var consumer = Substitute.For <IKafkaConsumer>(); var sut = new KafkaBlockingRawMessageReader(consumer); sut.Dispose(); consumer.Received(1).Dispose(); }