コード例 #1
0
ファイル: TopicMatchTests.cs プロジェクト: lingxyd/Charlotte
        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();
        }
コード例 #2
0
ファイル: TopicMatchTests.cs プロジェクト: lingxyd/Charlotte
        public void MultiLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "#", "this/should/match/everything")
                .ShouldBeTrue();
        }
コード例 #3
0
ファイル: TopicMatchTests.cs プロジェクト: lingxyd/Charlotte
        public void BasicTopicsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

            matcher.TopicsMatch(null, "just/a/topic", "just/a/topic")
                .ShouldBeTrue();
        }
コード例 #4
0
        public void MultiLevelWildcardsMatch()
        {
            MqttTopicMatcher matcher = new MqttTopicMatcher();

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

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