public async Task reviewers() { var repo = GetRepository("fighters-only-reviewers"); protection.Client = GetClient(reviewers: 0); await protection.Check(repo); protection.RepoResolver.Lookup("fighters-only-reviewers") .Should().BeEquivalentTo( new RepositorySettings { Reviewers = 5, RequireStrictReviews = false, RequireCodeOwnerReviews = false, DismissStaleReviews = false, MergeCommit = false, SquashCommit = true, RebaseCommit = false }, opts => opts .Excluding(r => r.Name) .Excluding(r => r.Selection) ); protection.Change .Should().BeEquivalentTo( new[] { new Protection.RepoUpdate { Name = repo.Name, DefaultBranch = repo.DefaultBranch, UpdateReviewers = true } } ); }