public void HasherGetDefaultHashAlgorithmReturnsCorrectAlgorithm3() { ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger()); HashAlgorithmName actual = h.GetDefaultHashAlgorithm(ArchivialLibrary.Files.FileBackupPriority.High); Assert.AreEqual(HashAlgorithmName.SHA512, actual); }
public void HasherGetDefaultHashAlgorithmThrowsOnInvalidBackupPriority() { ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger()); HashAlgorithmName actual = h.GetDefaultHashAlgorithm(0); }