@@ -191,10 +191,10 @@ public void CanRewriteAuthorOfCommitsOnlyBeingPointedAtByTags()
191
191
AssertSucceedingButNotError ( ) ;
192
192
193
193
var lightweightTag = repo . Tags [ "so-lonely" ] ;
194
- Assert . Equal ( "Bam!\n " , ( ( Commit ) lightweightTag . Target ) . Message ) ;
194
+ Assert . Equal ( "Bam!" , ( ( Commit ) lightweightTag . Target ) . Message ) ;
195
195
196
196
var annotatedTag = repo . Tags [ "so-lonely-but-annotated" ] ;
197
- Assert . Equal ( "Bam!\n " , ( ( Commit ) annotatedTag . Target ) . Message ) ;
197
+ Assert . Equal ( "Bam!" , ( ( Commit ) annotatedTag . Target ) . Message ) ;
198
198
}
199
199
200
200
[ Fact ]
@@ -495,7 +495,7 @@ public void DoesNotRewriteRefsThatDontChange()
495
495
var parents = repo . Branches [ "br2" ] . Tip . Parents . ToList ( ) ;
496
496
Assert . Equal ( 2 , parents . Count ( ) ) ;
497
497
Assert . NotEmpty ( parents . Where ( c => c . Sha . StartsWith ( "9fd738e" ) ) ) ;
498
- Assert . Equal ( "abc\n " , parents . Single ( c => ! c . Sha . StartsWith ( "9fd738e" ) ) . Message ) ;
498
+ Assert . Equal ( "abc" , parents . Single ( c => ! c . Sha . StartsWith ( "9fd738e" ) ) . Message ) ;
499
499
}
500
500
501
501
[ Fact ]
@@ -530,7 +530,7 @@ public void CanNotOverWriteBackedUpReferences()
530
530
AssertErrorFired ( ex ) ;
531
531
AssertSucceedingNotFired ( ) ;
532
532
533
- Assert . Equal ( "abc\n " , repo . Head . Tip . Message ) ;
533
+ Assert . Equal ( "abc" , repo . Head . Tip . Message ) ;
534
534
535
535
var newOriginalRefs = repo . Refs . FromGlob ( "refs/original/*" ) . OrderBy ( r => r . CanonicalName ) . ToArray ( ) ;
536
536
Assert . Equal ( originalRefs , newOriginalRefs ) ;
@@ -791,7 +791,7 @@ public void HandlesNameRewritingOfChainedTags()
791
791
var newCommit = newAnnotationC . Target as Commit ;
792
792
Assert . NotNull ( newCommit ) ;
793
793
Assert . NotEqual ( newCommit , theCommit ) ;
794
- Assert . Equal ( "Rewrote\n " , newCommit . Message ) ;
794
+ Assert . Equal ( "Rewrote" , newCommit . Message ) ;
795
795
796
796
// Ensure the original tag doesn't exist anymore
797
797
Assert . Null ( repo . Tags [ "lightweightA" ] ) ;
0 commit comments