Ejemplo n.º 1
0
        public void CompressFile4BitDigitOddLength()
        {
            const string STR      = "12345678905";
            string       filePath = Path.Combine(TestContext.CurrentContext.TestDirectory, "testCompressFile4BitDigitOddLength.");

            writeStringFile(filePath + "txt", STR);
            Compression.CompressFile4BitDigit(filePath + "txt", filePath + "4bitDigit");

            string readBack = read4BitDigitFileAsString(filePath + "4bitDigit");

            File.Delete(filePath + ".txt");
            File.Delete(filePath + ".4bitDigit");

            Assert.AreEqual(STR, readBack);
            Console.WriteLine(readBack);
        }