public void IsValidFalseNoTopic() { ProducerRequest request = new ProducerRequest(null, 0, null); Assert.IsFalse(request.IsValid()); }
public void IsValidFalseNoMessages() { ProducerRequest request = new ProducerRequest("topic", 0, null); Assert.IsFalse(request.IsValid()); }
public void IsValidTrue() { ProducerRequest request = new ProducerRequest( "topic", 0, new List<Message> { new Message(new byte[10]) }); Assert.IsTrue(request.IsValid()); }