コード例 #1
0
        public void WithTopic_BuilderOptionsIsNull_ThrowsArgumentNullException()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => KafkaBuilderOptionsExtensions.WithTopic <object, object>(null, ""));

            Assert.Equal("builderOptions", exception.ParamName);
        }
コード例 #2
0
        public void FromConfiguration_BuilderOptionsIsNull_ThrowsArgumentNullException()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => KafkaBuilderOptionsExtensions.FromConfiguration <object, object>(null, null));

            Assert.Equal("builderOptions", exception.ParamName);
        }