@@ -193,17 +193,16 @@ await RepositoryManager
193
193
194
194
repositoryManagerEvents . LocalBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
195
195
repositoryManagerEvents . GitStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
196
- repositoryManagerEvents . GitStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
197
196
repositoryManagerEvents . GitLogUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
198
197
199
198
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
200
- repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
201
- repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
199
+ repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
200
+ repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
202
201
repositoryManagerListener . Received ( ) . GitStatusUpdated ( Args . GitStatus ) ;
203
202
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
204
203
repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
205
204
repositoryManagerListener . Received ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
206
- repositoryManagerListener . DidNotReceive ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
205
+ repositoryManagerListener . Received ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
207
206
}
208
207
finally
209
208
{
@@ -275,19 +274,18 @@ await RepositoryManager
275
274
repositoryManagerEvents . WaitForNotBusy ( ) ;
276
275
StopTrackTimeAndLog ( watch , logger ) ;
277
276
278
- repositoryManagerEvents . GitStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
279
277
repositoryManagerEvents . GitStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
280
278
repositoryManagerEvents . LocalBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
281
279
repositoryManagerEvents . GitLogUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
282
280
283
281
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
284
- repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
285
- repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
282
+ repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
283
+ repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
286
284
repositoryManagerListener . Received ( ) . GitStatusUpdated ( Args . GitStatus ) ;
287
285
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
288
286
repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
289
287
repositoryManagerListener . Received ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
290
- repositoryManagerListener . DidNotReceive ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
288
+ repositoryManagerListener . Received ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
291
289
}
292
290
finally
293
291
{
@@ -411,34 +409,36 @@ public async Task ShouldDetectBranchCreate()
411
409
repositoryManagerEvents . LocalBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
412
410
413
411
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
414
- repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
412
+ repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
415
413
repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
416
414
repositoryManagerListener . DidNotReceive ( ) . GitStatusUpdated ( Args . GitStatus ) ;
417
415
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
418
416
repositoryManagerListener . DidNotReceive ( ) . GitLogUpdated ( Args . GitLogs ) ;
419
417
repositoryManagerListener . Received ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
420
- repositoryManagerListener . DidNotReceive ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
418
+ repositoryManagerListener . Received ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
421
419
422
420
repositoryManagerListener . ClearReceivedCalls ( ) ;
423
421
repositoryManagerEvents . Reset ( ) ;
424
422
425
423
await RepositoryManager . CreateBranch ( "feature2/document2" , "feature/document" ) . StartAsAsync ( ) ;
426
424
await TaskManager . Wait ( ) ;
427
425
426
+ StartTrackTime ( watch , logger , "CreateBranch" ) ;
428
427
RepositoryManager . WaitForEvents ( ) ;
428
+ StopTrackTimeAndLog ( watch , logger ) ;
429
+
429
430
repositoryManagerEvents . WaitForNotBusy ( ) ;
430
431
431
432
repositoryManagerEvents . LocalBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
432
- repositoryManagerEvents . GitLogUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
433
433
434
434
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
435
435
repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
436
- repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
436
+ repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
437
437
repositoryManagerListener . DidNotReceive ( ) . GitStatusUpdated ( Args . GitStatus ) ;
438
438
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
439
- repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
439
+ repositoryManagerListener . DidNotReceive ( ) . GitLogUpdated ( Args . GitLogs ) ;
440
440
repositoryManagerListener . Received ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
441
- repositoryManagerListener . DidNotReceive ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
441
+ repositoryManagerListener . Received ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
442
442
}
443
443
finally
444
444
{
@@ -570,7 +570,7 @@ await RepositoryManager.SwitchBranch("branch2")
570
570
571
571
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
572
572
repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
573
- repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
573
+ repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
574
574
repositoryManagerListener . DidNotReceive ( ) . GitStatusUpdated ( Args . GitStatus ) ;
575
575
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
576
576
repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
@@ -609,11 +609,10 @@ public async Task ShouldDetectGitPull()
609
609
610
610
repositoryManagerEvents . LocalBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
611
611
repositoryManagerEvents . GitStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
612
- repositoryManagerEvents . GitLogUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
613
612
614
613
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
615
- repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
616
- repositoryManagerListener . DidNotReceive ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
614
+ repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
615
+ repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
617
616
repositoryManagerListener . Received ( ) . GitStatusUpdated ( Args . GitStatus ) ;
618
617
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
619
618
repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
@@ -651,16 +650,15 @@ public async Task ShouldDetectGitFetch()
651
650
repositoryManagerEvents . WaitForNotBusy ( ) ;
652
651
653
652
repositoryManagerEvents . RemoteBranchesUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
654
- repositoryManagerEvents . GitLogUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
655
653
repositoryManagerEvents . GitAheadBehindStatusUpdated . WaitOne ( Timeout ) . Should ( ) . BeTrue ( ) ;
656
654
657
655
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
658
- repositoryManagerListener . DidNotReceive ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
656
+ repositoryManagerListener . Received ( ) . CurrentBranchUpdated ( Args . NullableConfigBranch , Args . NullableConfigRemote ) ;
659
657
repositoryManagerListener . Received ( ) . GitAheadBehindStatusUpdated ( Args . GitAheadBehindStatus ) ;
660
658
repositoryManagerListener . DidNotReceive ( ) . GitStatusUpdated ( Args . GitStatus ) ;
661
659
repositoryManagerListener . DidNotReceive ( ) . GitLocksUpdated ( Args . GitLocks ) ;
662
- repositoryManagerListener . Received ( ) . GitLogUpdated ( Args . GitLogs ) ;
663
- repositoryManagerListener . DidNotReceive ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
660
+ repositoryManagerListener . DidNotReceive ( ) . GitLogUpdated ( Args . GitLogs ) ;
661
+ repositoryManagerListener . Received ( ) . LocalBranchesUpdated ( Args . LocalBranchDictionary ) ;
664
662
repositoryManagerListener . Received ( ) . RemoteBranchesUpdated ( Args . RemoteDictionary , Args . RemoteBranchDictionary ) ;
665
663
}
666
664
finally
0 commit comments