public static void HashTest() { var hash = LfxHash.Compute(Content, Encoding.UTF8); var sameHash = LfxHash.Compute(Content, Encoding.UTF8); Assert.AreEqual(hash.ToString(), sameHash.ToString()); Assert.AreEqual(HashValue, hash.ToString()); }
public static void LoadTest() { using (var tempFile = new TempFile()) { File.WriteAllText(tempFile, Content, Encoding.UTF8); var hash = LfxHash.Compute(tempFile); var sampleHash = LfxHash.Compute(Content, Encoding.UTF8); Assert.AreEqual(sampleHash, hash); Assert.IsTrue(sampleHash.Value.SequenceEqual(hash.Value)); } }