public void ToStringTest() { var tpe = new TopicPartitionError("mytopic", 42, ErrorCode.Local_BadMsg); Assert.Contains(tpe.Topic, tpe.ToString()); Assert.Contains(tpe.Partition.ToString(), tpe.ToString()); Assert.Contains(tpe.Error.ToString(), tpe.ToString()); Assert.Contains(tpe.Error.Reason, tpe.ToString()); }
public void ToStringTest() { Library.Load(); var tpe = new TopicPartitionError("mytopic", 42, ErrorCode.Local_BadMsg); Assert.True(tpe.ToString().Contains(tpe.Topic)); Assert.True(tpe.ToString().Contains(tpe.Partition.ToString())); Assert.True(tpe.ToString().Contains(tpe.Error.ToString())); Assert.True(tpe.ToString().Contains(tpe.Error.Reason)); }