Ejemplo n.º 1
0
        public void SingleLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(new MqttMessage(), "{wildcard}/not_a_wildcard/{but_this_is}", "anything/not_a_wildcard/more_anything")
                .ShouldBeTrue();
        }
Ejemplo n.º 2
0
        public void MultiLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "#", "this/should/match/everything")
                .ShouldBeTrue();
        }
Ejemplo n.º 3
0
        public void BasicTopicsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "just/a/topic", "just/a/topic")
                .ShouldBeTrue();
        }
Ejemplo n.º 4
0
        public void MultiLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "#", "this/should/match/everything")
            .ShouldBeTrue();
        }
Ejemplo n.º 5
0
        public void SingleLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(new MqttMessage(), "{wildcard}/not_a_wildcard/{but_this_is}", "anything/not_a_wildcard/more_anything")
            .ShouldBeTrue();
        }
Ejemplo n.º 6
0
        public void BasicTopicsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "just/a/topic", "just/a/topic")
            .ShouldBeTrue();
        }