예제 #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);
        }