public void ShouldThrowIfGitIsNotInstalled([Frozen]Mock<IGitCommand> gitCommand, GitRepositoryConfigurer repositoryConfigurer, string id, User user)
{
gitCommand.Setup(x => x.Execute("--version")).Throws<GitCommandException>();
var exception = Assert.Throws<RepositoryConfigurationException>(() => repositoryConfigurer.Configure(id, user));
Assert.Equal(string.Format("Git is not installed.", GetRepositoryUrl(id, user)), exception.Message);
}