Beispiel #1
0
        public void MetadataRequest(
            [Values("test", "a really long name, with spaces and punctuation!")] string topic,
            [Values(0, 1, 10)] int topicsPerRequest)
        {
            var topics = new List <string>();

            for (var t = 0; t < topicsPerRequest; t++)
            {
                topics.Add(topic + t);
            }
            var request = new MetadataRequest(topics);

            request.AssertCanEncodeDecodeRequest(0);
        }
        public void MetadataRequest(
            [Values("testTopic")] string topic,
            [Values(0, 1, 10)] int topicsPerRequest)
        {
            var topics = new List <string>();

            for (var t = 0; t < topicsPerRequest; t++)
            {
                topics.Add(topic + t);
            }
            var request = new MetadataRequest(topics);

            request.AssertCanEncodeDecodeRequest(0);
        }