@@ -191,10 +191,10 @@ public void CanRewriteAuthorOfCommitsOnlyBeingPointedAtByTags()
191191 AssertSucceedingButNotError ( ) ;
192192
193193 var lightweightTag = repo . Tags [ "so-lonely" ] ;
194- Assert . Equal ( "Bam!\n " , ( ( Commit ) lightweightTag . Target ) . Message ) ;
194+ Assert . Equal ( "Bam!" , ( ( Commit ) lightweightTag . Target ) . Message ) ;
195195
196196 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 ) ;
198198 }
199199
200200 [ Fact ]
@@ -495,7 +495,7 @@ public void DoesNotRewriteRefsThatDontChange()
495495 var parents = repo . Branches [ "br2" ] . Tip . Parents . ToList ( ) ;
496496 Assert . Equal ( 2 , parents . Count ( ) ) ;
497497 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 ) ;
499499 }
500500
501501 [ Fact ]
@@ -530,7 +530,7 @@ public void CanNotOverWriteBackedUpReferences()
530530 AssertErrorFired ( ex ) ;
531531 AssertSucceedingNotFired ( ) ;
532532
533- Assert . Equal ( "abc\n " , repo . Head . Tip . Message ) ;
533+ Assert . Equal ( "abc" , repo . Head . Tip . Message ) ;
534534
535535 var newOriginalRefs = repo . Refs . FromGlob ( "refs/original/*" ) . OrderBy ( r => r . CanonicalName ) . ToArray ( ) ;
536536 Assert . Equal ( originalRefs , newOriginalRefs ) ;
@@ -791,7 +791,7 @@ public void HandlesNameRewritingOfChainedTags()
791791 var newCommit = newAnnotationC . Target as Commit ;
792792 Assert . NotNull ( newCommit ) ;
793793 Assert . NotEqual ( newCommit , theCommit ) ;
794- Assert . Equal ( "Rewrote\n " , newCommit . Message ) ;
794+ Assert . Equal ( "Rewrote" , newCommit . Message ) ;
795795
796796 // Ensure the original tag doesn't exist anymore
797797 Assert . Null ( repo . Tags [ "lightweightA" ] ) ;
0 commit comments