Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void HasherGetDefaultHashAlgorithmThrowsOnInvalidBackupPriority()
        {
            ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger());

            HashAlgorithmName actual = h.GetDefaultHashAlgorithm(0);
        }