Пример #1
0
        public void GZipJsonTurkishWordWriteTest()
        {
            var    _turkDag = new MinimalDAG <char>(TestHelpers.GetSortedLines(Path.Combine(_scrabbleTestDataDirectoryPath, "TurkishWordList.txt")), new MinimalDAGNodeFactory <char>());
            string filePath = Path.Combine(_scrabbleTestDataDirectoryPath, "TurkishJsonSerializedGZIP.gz");

            MinimalDAGSerializer.Compress <char>(_turkDag, filePath);
        }
Пример #2
0
        public void GZipJsonEnglishCharWriteTest()
        {
            //var big = new MinimalDAG<char>(GetSortedLines(Path.Combine(_scrabbleTestDataDirectoryPath, "EnglishScrabbleWords.txt")), new MinimalDAGNodeFactory<char>());
            string filePath = Path.Combine(_scrabbleTestDataDirectoryPath, "ScrabbleJsonSerializedGZIP.gz");

            MinimalDAGSerializer.Compress <char>(_dag, filePath);
        }
Пример #3
0
        public void GZipDateWriteTest()
        {
            string filePath = Path.Combine(_scrabbleTestDataDirectoryPath, "DateTimeJsonSerializedGZIP.gz");

            MinimalDAGSerializer.Compress(_dateTimeDAG, filePath);
        }
Пример #4
0
        public void GZipStructWriteTest()
        {
            string filePath = Path.Combine(_scrabbleTestDataDirectoryPath, "StructJsonSerializedGZIP.gz");

            MinimalDAGSerializer.Compress(_structDAG, filePath, new CoordConverter());
        }
Пример #5
0
        public void GZipJsonNullIntWriteTest()
        {
            string filePath = Path.Combine(_scrabbleTestDataDirectoryPath, "NullIntJsonSerializedGZIP.gz");

            MinimalDAGSerializer.Compress <int?>(_intDAG, filePath);
        }