Пример #1
0
        public void FileHashWithValidFileReturnsHash()
        {
            IFileHashProvider hashProvider = new FileHashProvider();
            var contentHash = hashProvider.GetFileHash(@"..\..\..\Code Test\mew.jpg");

            Assert.IsNotNull(contentHash);
        }
Пример #2
0
        public void FileHashWithInvalidPathReturnsError()
        {
            IFileHashProvider hashProvider = new FileHashProvider();

            hashProvider.GetFileHash("zzz");
        }
Пример #3
0
        public void FileHashWithEmptyPathReturnsError()
        {
            IFileHashProvider hashProvider = new FileHashProvider();

            hashProvider.GetFileHash(string.Empty);
        }