@@ -94,7 +94,8 @@ public async Task ShouldDetectFileChanges()
94
94
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
95
95
repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
96
96
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
97
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
97
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
98
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
98
99
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
99
100
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
100
101
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -152,7 +153,8 @@ public async Task ShouldAddAndCommitFiles()
152
153
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
153
154
repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
154
155
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
155
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
156
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
157
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
156
158
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
157
159
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
158
160
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -177,7 +179,8 @@ await RepositoryManager
177
179
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
178
180
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
179
181
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
180
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
182
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
183
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
181
184
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
182
185
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
183
186
repositoryManagerListener . Received ( ) . OnLocalBranchUpdated ( expectedLocalBranch ) ;
@@ -227,7 +230,8 @@ public async Task ShouldAddAndCommitAllFiles()
227
230
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
228
231
repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
229
232
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
230
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
233
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
234
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
231
235
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
232
236
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
233
237
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -252,7 +256,8 @@ await RepositoryManager
252
256
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
253
257
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
254
258
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
255
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
259
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
260
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
256
261
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
257
262
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
258
263
repositoryManagerListener . Received ( ) . OnLocalBranchUpdated ( expectedLocalBranch ) ;
@@ -292,7 +297,8 @@ public async Task ShouldDetectBranchChange()
292
297
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
293
298
repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
294
299
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
295
- repositoryManagerListener . Received ( ) . OnHeadUpdated ( Args . String ) ;
300
+ repositoryManagerListener . Received ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
301
+ repositoryManagerListener . Received ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
296
302
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
297
303
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
298
304
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -346,7 +352,8 @@ public async Task ShouldDetectBranchDelete()
346
352
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
347
353
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
348
354
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
349
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
355
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
356
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
350
357
repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
351
358
repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
352
359
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -397,7 +404,8 @@ public async Task ShouldDetectBranchCreate()
397
404
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
398
405
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
399
406
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
400
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
407
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
408
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
401
409
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
402
410
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
403
411
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -444,7 +452,8 @@ public async Task ShouldDetectBranchCreate()
444
452
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
445
453
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
446
454
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
447
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
455
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
456
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
448
457
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
449
458
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
450
459
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -499,7 +508,8 @@ public async Task ShouldDetectChangesToRemotes()
499
508
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
500
509
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
501
510
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
502
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
511
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
512
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
503
513
repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
504
514
repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
505
515
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -542,7 +552,8 @@ public async Task ShouldDetectChangesToRemotes()
542
552
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
543
553
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
544
554
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
545
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
555
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
556
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
546
557
repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
547
558
repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
548
559
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -621,7 +632,8 @@ await RepositoryManager.CreateBranch("branch2", "another/master")
621
632
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
622
633
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
623
634
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
624
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
635
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
636
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
625
637
repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
626
638
repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
627
639
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -671,9 +683,10 @@ await RepositoryManager.SwitchBranch("branch2")
671
683
WaitForHeadUpdated ( repositoryManagerEvents ) ;
672
684
673
685
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
674
- repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
686
+ repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
675
687
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
676
- repositoryManagerListener . Received ( ) . OnHeadUpdated ( Args . String ) ;
688
+ repositoryManagerListener . Received ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
689
+ repositoryManagerListener . Received ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
677
690
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
678
691
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
679
692
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -738,7 +751,8 @@ public async Task ShouldDetectGitPull()
738
751
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
739
752
repositoryManagerListener . Received ( ) . OnStatusUpdated ( Args . GitStatus ) ;
740
753
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
741
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
754
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
755
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
742
756
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
743
757
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
744
758
repositoryManagerListener . Received ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -796,8 +810,12 @@ public async Task ShouldDetectGitFetch()
796
810
Repository . Owner . Should ( ) . Be ( "EvilStanleyGoldman" ) ;
797
811
Repository . LocalPath . Should ( ) . Be ( TestRepoMasterCleanUnsynchronized ) ;
798
812
Repository . IsGitHub . Should ( ) . BeTrue ( ) ;
799
- Repository . CurrentBranchName . Should ( ) . Be ( null ) ;
800
- Repository . CurrentBranch . HasValue . Should ( ) . BeFalse ( ) ;
813
+ Repository . CurrentBranchName . Should ( ) . Be ( "master" ) ;
814
+ Repository . CurrentBranch . HasValue . Should ( ) . BeTrue ( ) ;
815
+ Repository . CurrentBranch . Value . Name . Should ( ) . Be ( "master" ) ;
816
+ Repository . CurrentBranch . Value . Remote . HasValue . Should ( ) . BeTrue ( ) ;
817
+ Repository . CurrentBranch . Value . Remote . Value . Name . Should ( ) . Be ( "origin" ) ;
818
+ Repository . CurrentBranch . Value . Remote . Value . Url . Should ( ) . Be ( "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ;
801
819
Repository . CurrentRemote . HasValue . Should ( ) . BeTrue ( ) ;
802
820
Repository . CurrentRemote . Value . Name . Should ( ) . Be ( "origin" ) ;
803
821
Repository . CurrentRemote . Value . Url . Should ( ) . Be ( "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ;
@@ -818,7 +836,8 @@ public async Task ShouldDetectGitFetch()
818
836
repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
819
837
repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
820
838
repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
821
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
839
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentBranchUpdated ( Arg . Any < ConfigBranch ? > ( ) ) ;
840
+ repositoryManagerListener . DidNotReceive ( ) . OnCurrentRemoteUpdated ( Arg . Any < ConfigRemote ? > ( ) ) ;
822
841
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
823
842
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
824
843
repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
@@ -832,8 +851,12 @@ public async Task ShouldDetectGitFetch()
832
851
Repository . Owner . Should ( ) . Be ( "EvilStanleyGoldman" ) ;
833
852
Repository . LocalPath . Should ( ) . Be ( TestRepoMasterCleanUnsynchronized ) ;
834
853
Repository . IsGitHub . Should ( ) . BeTrue ( ) ;
835
- Repository . CurrentBranchName . Should ( ) . Be ( null ) ;
836
- Repository . CurrentBranch . HasValue . Should ( ) . BeFalse ( ) ;
854
+ Repository . CurrentBranchName . Should ( ) . Be ( "master" ) ;
855
+ Repository . CurrentBranch . HasValue . Should ( ) . BeTrue ( ) ;
856
+ Repository . CurrentBranch . Value . Name . Should ( ) . Be ( "master" ) ;
857
+ Repository . CurrentBranch . Value . Remote . HasValue . Should ( ) . BeTrue ( ) ;
858
+ Repository . CurrentBranch . Value . Remote . Value . Name . Should ( ) . Be ( "origin" ) ;
859
+ Repository . CurrentBranch . Value . Remote . Value . Url . Should ( ) . Be ( "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ;
837
860
Repository . CurrentRemote . HasValue . Should ( ) . BeTrue ( ) ;
838
861
Repository . CurrentRemote . Value . Name . Should ( ) . Be ( "origin" ) ;
839
862
Repository . CurrentRemote . Value . Url . Should ( ) . Be ( "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ;
0 commit comments