public async Task ReplaceTest(string filename, string replacementFolder, string expectedFolder) { using (ArcFile arcFile = new ArcFile(filename)) { await arcFile.ReplaceEntries(new FileSource(replacementFolder), progress); await arcFile.SaveAs("temp.arc"); } 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); }