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(); }