@@ -44,7 +44,7 @@ public async Task ShouldDetectFileChanges()
44
44
Logger . Trace ( "Continue test" ) ;
45
45
46
46
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
47
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
47
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
48
48
repositoryWatcherListener . Received ( ) . IndexChanged ( ) ;
49
49
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
50
50
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -90,7 +90,7 @@ public async Task ShouldDetectBranchChange()
90
90
Logger . Trace ( "Continue test" ) ;
91
91
92
92
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
93
- repositoryWatcherListener . Received ( 1 ) . HeadChanged ( "ref: refs/heads/feature/document" ) ;
93
+ repositoryWatcherListener . Received ( ) . HeadChanged ( ) ;
94
94
repositoryWatcherListener . Received ( ) . IndexChanged ( ) ;
95
95
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
96
96
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -135,7 +135,7 @@ public async Task ShouldDetectBranchDelete()
135
135
Logger . Trace ( "Continue test" ) ;
136
136
137
137
repositoryWatcherListener . Received ( 1 ) . ConfigChanged ( ) ;
138
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
138
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
139
139
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
140
140
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
141
141
repositoryWatcherListener . Received ( 1 ) . LocalBranchDeleted ( "feature/document" ) ;
@@ -179,7 +179,7 @@ public async Task ShouldDetectBranchCreate()
179
179
Logger . Trace ( "Continue test" ) ;
180
180
181
181
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
182
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
182
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
183
183
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
184
184
repositoryWatcherListener . Received ( 1 ) . LocalBranchCreated ( "feature/document2" ) ;
185
185
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -201,7 +201,7 @@ public async Task ShouldDetectBranchCreate()
201
201
Logger . Trace ( "Continue test" ) ;
202
202
203
203
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
204
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
204
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
205
205
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
206
206
repositoryWatcherListener . Received ( 1 ) . LocalBranchCreated ( "feature2/document2" ) ;
207
207
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -250,7 +250,7 @@ public async Task ShouldDetectChangesToRemotes()
250
250
Logger . Trace ( "Continue test" ) ;
251
251
252
252
repositoryWatcherListener . Received ( ) . ConfigChanged ( ) ;
253
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
253
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
254
254
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
255
255
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
256
256
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -275,7 +275,7 @@ public async Task ShouldDetectChangesToRemotes()
275
275
Logger . Trace ( "Continue 2nd test" ) ;
276
276
277
277
repositoryWatcherListener . Received ( ) . ConfigChanged ( ) ;
278
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
278
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
279
279
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
280
280
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
281
281
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -321,7 +321,7 @@ public async Task ShouldDetectGitPull()
321
321
Logger . Trace ( "Continue test" ) ;
322
322
323
323
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
324
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
324
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
325
325
repositoryWatcherListener . Received ( ) . IndexChanged ( ) ;
326
326
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
327
327
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -366,7 +366,7 @@ public async Task ShouldDetectGitFetch()
366
366
Logger . Trace ( "Continue test" ) ;
367
367
368
368
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
369
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
369
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
370
370
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
371
371
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
372
372
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
@@ -394,7 +394,7 @@ private RepositoryWatcher CreateRepositoryWatcher(NPath path)
394
394
public interface IRepositoryWatcherListener
395
395
{
396
396
void ConfigChanged ( ) ;
397
- void HeadChanged ( string obj ) ;
397
+ void HeadChanged ( ) ;
398
398
void IndexChanged ( ) ;
399
399
void LocalBranchCreated ( string branch ) ;
400
400
void LocalBranchDeleted ( string branch ) ;
@@ -411,10 +411,10 @@ public static void AttachListener(this IRepositoryWatcherListener listener, IRep
411
411
{
412
412
var logger = trace ? Logging . GetLogger < IRepositoryWatcherListener > ( ) : null ;
413
413
414
- repositoryWatcher . HeadChanged += s =>
414
+ repositoryWatcher . HeadChanged += ( ) =>
415
415
{
416
- logger ? . Trace ( "HeadChanged: {0}" , s ) ;
417
- listener . HeadChanged ( s ) ;
416
+ logger ? . Trace ( "HeadChanged" ) ;
417
+ listener . HeadChanged ( ) ;
418
418
autoResetEvent ? . HeadChanged . Set ( ) ;
419
419
} ;
420
420
@@ -485,7 +485,7 @@ public static void AttachListener(this IRepositoryWatcherListener listener, IRep
485
485
public static void AssertDidNotReceiveAnyCalls ( this IRepositoryWatcherListener repositoryWatcherListener )
486
486
{
487
487
repositoryWatcherListener . DidNotReceive ( ) . ConfigChanged ( ) ;
488
- repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( Args . String ) ;
488
+ repositoryWatcherListener . DidNotReceive ( ) . HeadChanged ( ) ;
489
489
repositoryWatcherListener . DidNotReceive ( ) . IndexChanged ( ) ;
490
490
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchCreated ( Args . String ) ;
491
491
repositoryWatcherListener . DidNotReceive ( ) . LocalBranchDeleted ( Args . String ) ;
0 commit comments