Esempio 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();
        }
Esempio n. 2
0
        public void MultiLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

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

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

            matcher.TopicsMatch(null, "#", "this/should/match/everything")
            .ShouldBeTrue();
        }
Esempio 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();
        }
Esempio n. 6
0
        public void BasicTopicsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

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