public async Task Should_LoadFileAndSerializeToBinarySucceeded()
        {
            string srcFileName = TestContext.CurrentContext.TestDirectory + "/../../../libchewing/data/tsi.src";
            var    dictManager = new PhraseDictionaryManager(Log.Logger);
            await dictManager.LoadFromTextFileAsync(srcFileName);

            string dstFileName = TestContext.CurrentContext.TestDirectory + "/ChewingDictionary.bin";

            PhraseDictionarySerializer.SerializeToBinaryFile(dstFileName, dictManager.PhraseDictionary);
            Assert.IsTrue(File.Exists(dstFileName));

            var deserialized = PhraseDictionarySerializer.DeserializeFromBinaryFile(dstFileName);

            Assert.IsTrue(dictManager.PhraseDictionary.Equals(deserialized));
        }
        public void Should_SerializationSucceeded(string filename)
        {
            var phrases = CreateTestPhraseData();

            var dictManager = new PhraseDictionaryManager(Log.Logger);

            dictManager.LoadFromEnumerable(phrases);

            filename = TestContext.CurrentContext.TestDirectory + filename;
            PhraseDictionarySerializer.SerializeToBinaryFile(filename, dictManager.PhraseDictionary);
            Assert.IsTrue(File.Exists(filename));

            var deserialized = PhraseDictionarySerializer.DeserializeFromBinaryFile(filename);

            Assert.IsTrue(dictManager.PhraseDictionary.Equals(deserialized));
        }