@@ -17,7 +17,7 @@ public void SearchContent_ShouldLogFirstAndLastAppearance_Correctly()
1717
1818 // Simulate commits
1919 var commits = new [ ] { "commit5" , "commit4" , "commit3" , "commit2" , "commit1" } ;
20- gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
20+ gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
2121 gitHelperMock . Setup ( g => g . GetCommitTime ( It . IsAny < string > ( ) ) ) . Returns ( "2023-08-21 12:00:00" ) ;
2222
2323 // Simulate string appearances based on the specific commit
@@ -51,7 +51,7 @@ public void SearchContent_ShouldLogCorrectly_WhenStringNotFound()
5151
5252 // Simulate commits
5353 var commits = new [ ] { "commit1" , "commit2" , "commit3" , "commit4" , "commit5" } ;
54- gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
54+ gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
5555 gitHelperMock . Setup ( g => g . GetCommitTime ( It . IsAny < string > ( ) ) ) . Returns ( "2023-08-21 12:00:00" ) ;
5656
5757 // Simulate no appearances of the string
@@ -80,7 +80,7 @@ public void SearchContent_ShouldLogCorrectly_WhenStringAppearsInSingleCommit()
8080
8181 // Simulate commits
8282 var commits = new [ ] { "commit1" , "commit2" , "commit3" , "commit4" , "commit5" } ;
83- gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
83+ gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( commits ) ;
8484 gitHelperMock . Setup ( g => g . GetCommitTime ( It . IsAny < string > ( ) ) ) . Returns ( "2023-08-21 12:00:00" ) ;
8585
8686 // Simulate string appearance: Found only in commit3
@@ -117,8 +117,8 @@ public void SearchContent_ShouldRestrictSearchToSpecifiedCommitRange()
117117 var restrictedCommits = new [ ] { "commit3" , "commit2" } ;
118118
119119 // Mock the GetGitCommits method to return only the restricted range when specified
120- gitHelperMock . Setup ( g => g . GetGitCommits ( "commit2" , "commit3" ) ) . Returns ( restrictedCommits ) ;
121- gitHelperMock . Setup ( g => g . GetGitCommits ( It . Is < string > ( s => s != "commit2" ) , It . Is < string > ( s => s != "commit3" ) ) ) . Returns ( allCommits ) ;
120+ gitHelperMock . Setup ( g => g . GetGitCommits ( "commit2" , "commit3" , It . IsAny < string > ( ) ) ) . Returns ( restrictedCommits ) ;
121+ gitHelperMock . Setup ( g => g . GetGitCommits ( It . Is < string > ( s => s != "commit2" ) , It . Is < string > ( s => s != "commit3" ) , It . IsAny < string > ( ) ) ) . Returns ( allCommits ) ;
122122
123123 gitHelperMock . Setup ( g => g . GetCommitTime ( It . IsAny < string > ( ) ) ) . Returns ( "2023-08-21 12:00:00" ) ;
124124
@@ -162,7 +162,7 @@ public void SearchContent_ShouldLogError_WhenEarliestCommitIsMoreRecentThanLates
162162 var allCommits = new [ ] { "commit5" , "commit4" , "commit3" , "commit2" , "commit1" } ;
163163
164164 // Mock the GetGitCommits method
165- gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( allCommits ) ;
165+ gitHelperMock . Setup ( g => g . GetGitCommits ( It . IsAny < string > ( ) , It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) . Returns ( allCommits ) ;
166166 gitHelperMock . Setup ( g => g . GetCommitTime ( It . IsAny < string > ( ) ) ) . Returns ( "2023-08-21 12:00:00" ) ;
167167
168168 using ( var stringWriter = new StringWriter ( ) )
0 commit comments