public void FileHashWithValidFileReturnsHash() { IFileHashProvider hashProvider = new FileHashProvider(); var contentHash = hashProvider.GetFileHash(@"..\..\..\Code Test\mew.jpg"); Assert.IsNotNull(contentHash); }
public void FileHashWithInvalidPathReturnsError() { IFileHashProvider hashProvider = new FileHashProvider(); hashProvider.GetFileHash("zzz"); }
public void FileHashWithEmptyPathReturnsError() { IFileHashProvider hashProvider = new FileHashProvider(); hashProvider.GetFileHash(string.Empty); }