public void StartHash() { const string fileName = "startHash.fr"; using (var fs = File.OpenWrite(fileName)) { var data = Encoding.ASCII.GetBytes("just some data"); fs.Write(data, 0, data.Length); } var fi = new FileInfo(fileName); var fr = new FileReference(fi); fr.StartHash(fi).Wait(); Assert.NotNull(fr.Hash); }