Esempio n. 1
0
        public void AddSingleLevelWildcard()
        {
            // Arrange
            ITopicBuilder builder = new TopicBuilder(TopicConsumer.Subscriber);

            // Act
            builder = builder.AddSingleLevelWildcard();

            // Assert
            builder.Levels
            .Should()
            .Be(1, "because the wildcard consist of one level");

            builder.IsAppendingAllowed
            .Should()
            .BeTrue("because a single level wildcard should not block topic appending");
        }