public void HashFileTest() { string path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"Data", @"HgUtility", @"HashFile.txt"); string hash = HgUtility.HashFile(path); Assert.AreEqual(@"2e99758548972a8e8822ad47fa1017ff72f06f3ff6a016851f45c398732bc50c", hash); }
private string HashFile() { string hash = HgUtility.HashFile(FileFullName); if (string.IsNullOrEmpty(hash)) { return(""); } return(hash); }