Example #1
0
        public void Compressor_CanCompressIonic()
        {
            ICompressor compressor = new GZipCompressor();
            string archive = compressor.Compress(TestFilePath);

            Assert.IsTrue(File.Exists(archive));
        }
Example #2
0
        public void Compressor_CanDecompressIonic()
        {
            ICompressor compressor = new GZipCompressor();
            string file = compressor.Decompress(compressor.Compress(TestFilePath));

            Assert.IsTrue(File.Exists(file));
            Assert.AreEqual(TestFilePath, file);
        }