Пример #1
0
        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);
        }
Пример #2
0
        public void HasherGenerateDefaultHashThrowsOnInvalidBackupPriority()
        {
            ArchivialLibrary.Crypto.Hasher h = new ArchivialLibrary.Crypto.Hasher(new MockLogger());

            byte[] actualHash = h.GenerateDefaultHash(".\\TestFiles\\Hasher\\SmallFile.txt", 0);
        }