public void GZip() { string data = new String('A', 200); CompressedWrapper<string> wrapper = new CompressedWrapper<string>(data, CompressedWrapper.CompressionType.GZip); string result = wrapper.GetObject(CompressedWrapper.CompressionType.GZip).ToString(); Assert.AreEqual(data, result, "Data not recovered"); }
public void Deflate() { string data = new String('A', 200); //RandomData(200) CompressedWrapper<string> wrapper = new CompressedWrapper<string>(data); string result = wrapper.GetObject().ToString(); Assert.AreEqual(data, result, "Data not recovered"); }