public void WithTopic_BuilderOptionsIsNull_ThrowsArgumentNullException() { var exception = Assert.Throws <ArgumentNullException>(() => KafkaBuilderOptionsExtensions.WithTopic <object, object>(null, "")); Assert.Equal("builderOptions", exception.ParamName); }
public void FromConfiguration_BuilderOptionsIsNull_ThrowsArgumentNullException() { var exception = Assert.Throws <ArgumentNullException>(() => KafkaBuilderOptionsExtensions.FromConfiguration <object, object>(null, null)); Assert.Equal("builderOptions", exception.ParamName); }