예제 #1
0
        public void GetFileHash_ReturnHash()
        {
            Provider.RootDirectory.CreateFile("File1.ext", "");
            var fileHash = Provider.GetFileHash("/File1.ext");

            Assert.That(fileHash, Is.Not.Null);
        }
예제 #2
0
 public string fileHash(IVirtualPathProvider vfs, string virtualPath) => vfs.GetFileHash(virtualPath);
예제 #3
0
 public static string GetFileHash(this IVirtualPathProvider vpp, string virtualPath)
 {
     return(vpp.GetFileHash(virtualPath, new[] { virtualPath }));
 }