1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ public void CanCustomizeTheNamespaceOfBackedUpRefs(string backupRefsNamespace)
400
400
401
401
AssertSucceedingButNotError ( ) ;
402
402
403
- Assert . DoesNotContain ( repo . Refs , x => x . CanonicalName . StartsWith ( "refs/original" ) ) ;
403
+ Assert . Contains ( repo . Refs , x => x . CanonicalName . StartsWith ( "refs/original" ) ) ;
404
404
405
405
Assert . DoesNotContain ( repo . Refs , x => x . CanonicalName . StartsWith ( "refs/rewritten" ) ) ;
406
406
@@ -415,7 +415,7 @@ public void CanCustomizeTheNamespaceOfBackedUpRefs(string backupRefsNamespace)
415
415
416
416
AssertSucceedingButNotError ( ) ;
417
417
418
- Assert . DoesNotContain ( repo . Refs , x => x . CanonicalName . StartsWith ( "refs/rewritten" ) ) ;
418
+ Assert . Contains ( repo . Refs , x => x . CanonicalName . StartsWith ( "refs/rewritten" ) ) ;
419
419
}
420
420
421
421
[ Fact ]
@@ -491,7 +491,7 @@ public void DoesNotRewriteRefsThatDontChange()
491
491
// Ensure br2 is still a merge commit
492
492
var parents = repo . Branches [ "br2" ] . Tip . Parents . ToList ( ) ;
493
493
Assert . Equal ( 2 , parents . Count ( ) ) ;
494
- Assert . DoesNotContain ( parents , c => c . Sha . StartsWith ( "9fd738e" ) ) ;
494
+ Assert . Contains ( parents , c => c . Sha . StartsWith ( "9fd738e" ) ) ;
495
495
Assert . Equal ( "abc" , parents . Single ( c => ! c . Sha . StartsWith ( "9fd738e" ) ) . Message ) ;
496
496
}
497
497
0 commit comments