public void CanLimitStatusToWorkDirOnly(StatusShowOption show, FileStatus expected) { var clone = SandboxStandardTestRepo(); using (var repo = new Repository(clone)) { Touch(repo.Info.WorkingDirectory, "file.txt", "content"); RepositoryStatus status = repo.RetrieveStatus(new StatusOptions() { Show = show }); Assert.Equal(expected, status["file.txt"].State); } }
public void CanLimitStatusToIndexOnly(StatusShowOption show, FileStatus expected) { var clone = SandboxStandardTestRepo(); using (var repo = new Repository(clone)) { Touch(repo.Info.WorkingDirectory, "file.txt", "content"); Commands.Stage(repo, "file.txt"); RepositoryStatus status = repo.RetrieveStatus(new StatusOptions() { Show = show }); Assert.Equal(expected, status["file.txt"].State); } }