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