protected async Task ZipByteArrayCore() { string tempDir = GetTempDirectory(); string dummyFileName = "dummy.txt"; string dummyFolderPath = Utils.CreateDummyDirectory(_mockData.ResourceFolder, tempDir, cleanFolder: true); string dummyFilePath = Utils.CreateDummyFile(dummyFolderPath, dummyFileName, cleanFolder: true); byte[] expectedBytes = await KFile.ReadAllBytesAsync(dummyFilePath); byte[] zippedBytes = Zipper.ZipByteArray(expectedBytes, "pippo"); byte[] actualUnzippedBytes = await Zipper.UnZipSingleFileContentToByteArrayAsync(zippedBytes).ConfigureAwait(false); Assert.Equal(expectedBytes, actualUnzippedBytes); Utils.RemoveDir(dummyFolderPath); }