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

ShouldThrowIfRemovingRemoteIsUnsuccessful() private method

private ShouldThrowIfRemovingRemoteIsUnsuccessful ( [ gitCommand, GitRepositoryConfigurer repositoryConfigurer ) : void
gitCommand [
repositoryConfigurer GitRepositoryConfigurer
return void
        public void ShouldThrowIfRemovingRemoteIsUnsuccessful([Frozen]Mock<IGitCommand> gitCommand, GitRepositoryConfigurer repositoryConfigurer)
        {
            gitCommand.Setup(x => x.Execute("remote rm appharbor")).Throws<GitCommandException>();

            Assert.Throws<RepositoryConfigurationException>(() => repositoryConfigurer.Unconfigure());

            gitCommand.VerifyAll();
        }