public void HasherGenerateDefaultHashReturnsCorrectLength3() { ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger()); byte[] actualHash = h.GenerateDefaultHash(".\\TestFiles\\Hasher\\SmallFile.txt", ArchivialLibrary.Files.FileBackupPriority.High); Assert.AreEqual(64, actualHash.Length); }
public void HasherGenerateDefaultHashThrowsOnInvalidBackupPriority() { ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger()); byte[] actualHash = h.GenerateDefaultHash(".\\TestFiles\\Hasher\\SmallFile.txt", 0); }