public void ZipMissingInfo() { string expectedHash = null; string zipPath = Path.Combine(TestSongZipsDir, "MissingInfo.zip"); string actualHash = SongHasher.GetZippedSongHash(zipPath); Assert.AreEqual(expectedHash, actualHash); }
public void ZipMissingDiff() { string expectedHash = "BD8CB1F979B29760D4B623E65A59ACD217F093F3"; string zipPath = Path.Combine(TestSongZipsDir, "MissingDiff.zip"); string actualHash = SongHasher.GetZippedSongHash(zipPath); Assert.AreEqual(expectedHash, actualHash); }
public void ZipHash_NoFile() { string expectedHash = null; string zipPath = Path.Combine(TestSongZipsDir, "DoesntExist.zip"); string actualHash = SongHasher.GetZippedSongHash(zipPath); Assert.AreEqual(expectedHash, actualHash); }
public void HashSongZip() { string expectedHash = "ea2d289fb640ce8a0d7302ae36bfa3a5710d9ee8".ToUpper(); string zipPath = Path.Combine(TestSongZipsDir, "2cd (Yee - katiedead).zip"); long quickHash = SongHasher.GetQuickZipHash(zipPath); string actualHash = SongHasher.GetZippedSongHash(zipPath); Assert.AreEqual(expectedHash, actualHash); }