<commit_before>﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using MQTTnet.Server;

namespace MQTTnet.Tests
{
    [TestClass]
    public class TopicFilterComparer_Tests
    {
        [TestMethod]
        public void TopicFilterComparer_DirectMatch()<commit_msg>Add Unit Tests.<commit_after>﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using MQTTnet.Server;

namespace MQTTnet.Tests
{
    [TestClass]
    public class TopicFilterComparer_Tests
    {
        [TestMethod]
        public void TopicFilterComparer_Plus_Match_With_Separator_Only()
        {
            //A Topic Name or Topic Filter consisting only of the ‘/’ character is valid
            CompareAndAssert("A", "+", true);
        }

        [TestMethod]
        public void TopicFilterComparer_Hash_Match_With_Separator_Only()
        {
            //A Topic Name or Topic Filter consisting only of the ‘/’ character is valid
            CompareAndAssert("/", "#", true);
        }

        [TestMethod]
        public void TopicFilterComparer_DirectMatch()
{'fraction_non_alphanumeric': 0.0789980732177264, 'fraction_numerical': 0.0, 'mean_word_length': 2.862453531598513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5558649', 'n_tokens_mistral': 298, 'n_tokens_neox': 293, 'n_words': 67}