public async Task ReplaceSaveTest(string filename, string replacementFolder, string expectedFolder) { await ArcFile.PatchArcFromFolder(filename, replacementFolder, "temp.arc", progress); using (ArcFile arcFile = new ArcFile("temp.arc")) { await arcFile.ExtractAllAsync("tempdir", true, progress); } bool eq = Compare.CompareDirectories(expectedFolder, "tempdir"); File.Delete("temp.arc"); File.Delete("temp.bin"); DirectoryInfo directoryInfo = new DirectoryInfo("tempdir"); directoryInfo.Delete(true); Assert.IsTrue(eq); }