Example #1
0
    static Task VerifyInner(string path)
    {
        var directory = Path.Combine(AssemblyLocation.CurrentDirectory, path);
        var hash      = GitHashReader.GetHashForGitDirectory(directory);

        return(Verifier.Verify(hash));
    }
    static void Verify(string path)
    {
        var directory = Path.Combine(AssemblyLocation.CurrentDirectory, path);
        var hash      = GitHashReader.GetHashForGitDirectory(directory);

        Approvals.Verify(hash);
    }
Example #3
0
    public void GetHash()
    {
        var path = GitRepoDirectoryFinder.FindForFilePath();
        var hash = GitHashReader.GetHash(path);

        Assert.NotNull(hash);
        Assert.NotEmpty(hash);
    }