public void CompressionTest() { string originalString = "qwerty1234567890"; byte[] bytes = Encoding.UTF8.GetBytes(originalString); byte[] compressed = PerformanceLogger.Zip(originalString); byte[] decompressed = Encoding.UTF8.GetBytes(PerformanceLogger.Unzip(compressed)); //Console.WriteLine(Encoding.UTF8.GetString(bytes)); //Console.WriteLine(Encoding.UTF8.GetString(decompressed)); CollectionAssert.AreEqual(bytes, decompressed); }