Skip to content

Commit 5162c68

Browse files
committedNov 23, 2024
Fix tests
1 parent 0eed453 commit 5162c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎LibGit2Sharp.Tests/FilterBranchFixture.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public void CanCustomizeTheNamespaceOfBackedUpRefs(string backupRefsNamespace)
400400

401401
AssertSucceedingButNotError();
402402

403-
Assert.DoesNotContain(repo.Refs, x => x.CanonicalName.StartsWith("refs/original"));
403+
Assert.Contains(repo.Refs, x => x.CanonicalName.StartsWith("refs/original"));
404404

405405
Assert.DoesNotContain(repo.Refs, x => x.CanonicalName.StartsWith("refs/rewritten"));
406406

@@ -415,7 +415,7 @@ public void CanCustomizeTheNamespaceOfBackedUpRefs(string backupRefsNamespace)
415415

416416
AssertSucceedingButNotError();
417417

418-
Assert.DoesNotContain(repo.Refs, x => x.CanonicalName.StartsWith("refs/rewritten"));
418+
Assert.Contains(repo.Refs, x => x.CanonicalName.StartsWith("refs/rewritten"));
419419
}
420420

421421
[Fact]
@@ -491,7 +491,7 @@ public void DoesNotRewriteRefsThatDontChange()
491491
// Ensure br2 is still a merge commit
492492
var parents = repo.Branches["br2"].Tip.Parents.ToList();
493493
Assert.Equal(2, parents.Count());
494-
Assert.DoesNotContain(parents, c => c.Sha.StartsWith("9fd738e"));
494+
Assert.Contains(parents, c => c.Sha.StartsWith("9fd738e"));
495495
Assert.Equal("abc", parents.Single(c => !c.Sha.StartsWith("9fd738e")).Message);
496496
}
497497

0 commit comments

Comments
 (0)
Failed to load comments.