public void PassesRepositoryPathToIsValidCheck( DirectoryPath repoPath, PrintShaIfApplicable sut) { sut.PathToRepositoryProvider.Path.Returns(repoPath); sut.Print(); sut.LocalRepoIsValid.Received(1).IsValidRepository(repoPath); }
public void NoCheckoutIfNotValid( PrintShaIfApplicable sut) { sut.LocalRepoIsValid.IsValidRepository(default).ReturnsForAnyArgs(false);