Fix hash comparison in DearchivalTests.TestSharpCompress

This commit is contained in:
YoshiRulz 2021-05-22 05:59:35 +10:00
parent bfdecce195
commit da649a1bc0
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 1 deletions
src/BizHawk.Tests/Client.Common/dearchive

View File

@ -46,7 +46,8 @@ namespace BizHawk.Tests.Client.Common.Dearchive
Assert.AreEqual(1, items!.Count, $"{filename} contains 1 file, but was detected as containing {items.Count} files");
using MemoryStream ms = new((int) items[0].Size);
af.ExtractFile(items[0].ArchiveIndex, ms);
// Assert.IsTrue(ms.ReadAllBytes().SequenceEqual(Rom), $"the file extracted from {filename} doesn't match the uncompressed file"); //TODO less dumb way of doing this? also it doesn't work
ms.Seek(0L, SeekOrigin.Begin);
Assert.IsTrue(ms.ReadAllBytes().SequenceEqual(Rom), $"the file extracted from {filename} doesn't match the uncompressed file");
}
}
}