public void ShouldCallExternalProcessWithGitSvnClone() { var processCaller = Substitute.For<IProcessCaller>(); var createBareGit = new CreateBareGit(processCaller); createBareGit.Create("projectName"); processCaller.Received(1) .ExecuteSync(@"git.exe", "clone --bare svnclone", "projectName"); }
public void WhenNotInformedProjectNameShouldThrowArgumentException() { var createBareGit = new CreateBareGit(Substitute.For<IProcessCaller>()); createBareGit.Create(string.Empty); }