AppHarbor.Tests.GitRepositoryConfigurerTest.ShouldThrowIfGitIsNotInstalled C# (CSharp) Method

ShouldThrowIfGitIsNotInstalled() private method

private ShouldThrowIfGitIsNotInstalled ( [ gitCommand, GitRepositoryConfigurer repositoryConfigurer, string id, User user ) : void
gitCommand [
repositoryConfigurer GitRepositoryConfigurer
id string
user AppHarbor.Model.User
return void
        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);
        }