@@ -452,51 +452,6 @@ await RepositoryManager.SwitchBranch("branch2")
452
452
repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchRemoved ( Args . String , Args . String ) ;
453
453
}
454
454
455
- [ Test ]
456
- public async Task ShouldUpdateCloneUrlIfRemoteIsDeleted ( )
457
- {
458
- await Initialize ( TestRepoMasterCleanSynchronized ) ;
459
-
460
- var repositoryManagerListener = Substitute . For < IRepositoryManagerListener > ( ) ;
461
- repositoryManagerListener . AttachListener ( RepositoryManager , repositoryManagerEvents ) ;
462
-
463
- await RepositoryManager . RemoteRemove ( "origin" ) . StartAsAsync ( ) ;
464
- await TaskManager . Wait ( ) ;
465
- RepositoryManager . WaitForEvents ( ) ;
466
- WaitForNotBusy ( repositoryManagerEvents ) ;
467
-
468
- repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
469
- repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
470
- repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
471
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
472
- repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
473
- repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
474
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
475
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchAdded ( Args . String ) ;
476
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchRemoved ( Args . String ) ;
477
- repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchAdded ( Args . String , Args . String ) ;
478
- repositoryManagerListener . Received ( ) . OnRemoteBranchRemoved ( Args . String , Args . String ) ;
479
-
480
- repositoryManagerListener . ClearReceivedCalls ( ) ;
481
- repositoryManagerEvents . Reset ( ) ;
482
-
483
- await RepositoryManager . RemoteAdd ( "origin" , "https://github.com/EvilShana/IOTestsRepo.git" ) . StartAsAsync ( ) ;
484
- await TaskManager . Wait ( ) ;
485
- RepositoryManager . WaitForEvents ( ) ;
486
-
487
- repositoryManagerListener . Received ( ) . OnIsBusyChanged ( Args . Bool ) ;
488
- repositoryManagerListener . DidNotReceive ( ) . OnStatusUpdated ( Args . GitStatus ) ;
489
- repositoryManagerListener . DidNotReceive ( ) . OnLocksUpdated ( Args . EnumerableGitLock ) ;
490
- repositoryManagerListener . DidNotReceive ( ) . OnHeadUpdated ( Args . String ) ;
491
- repositoryManagerListener . Received ( ) . OnLocalBranchListUpdated ( Arg . Any < Dictionary < string , ConfigBranch > > ( ) ) ;
492
- repositoryManagerListener . Received ( ) . OnRemoteBranchListUpdated ( Arg . Any < Dictionary < string , Dictionary < string , ConfigBranch > > > ( ) ) ;
493
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchUpdated ( Args . String ) ;
494
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchAdded ( Args . String ) ;
495
- repositoryManagerListener . DidNotReceive ( ) . OnLocalBranchRemoved ( Args . String ) ;
496
- repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchAdded ( Args . String , Args . String ) ;
497
- repositoryManagerListener . DidNotReceive ( ) . OnRemoteBranchRemoved ( Args . String , Args . String ) ;
498
- }
499
-
500
455
[ Test ]
501
456
public async Task ShouldDetectGitPull ( )
502
457
{
0 commit comments