@@ -51,11 +51,7 @@ public async Task ShouldDoNothingOnInitialize()
51
51
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
52
52
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
53
53
} ) ;
54
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
55
- {
56
- Name = "origin" ,
57
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
58
- } ) ;
54
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
59
55
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
60
56
new GitBranch ( "origin/master" , "[None]" , false ) ,
61
57
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -330,10 +326,7 @@ public async Task ShouldDetectBranchChange()
330
326
new GitBranch ( "feature/document" , "origin/feature/document" , true ) ,
331
327
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
332
328
} ) ;
333
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote {
334
- Name = "origin" ,
335
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
336
- } ) ;
329
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
337
330
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
338
331
new GitBranch ( "origin/master" , "[None]" , false ) ,
339
332
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -383,11 +376,7 @@ public async Task ShouldDetectBranchDelete()
383
376
new GitBranch ( "master" , "origin/master" , true ) ,
384
377
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
385
378
} ) ;
386
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
387
- {
388
- Name = "origin" ,
389
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
390
- } ) ;
379
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
391
380
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
392
381
new GitBranch ( "origin/master" , "[None]" , false ) ,
393
382
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -439,11 +428,7 @@ public async Task ShouldDetectBranchCreate()
439
428
new GitBranch ( "feature/document2" , "[None]" , false ) ,
440
429
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
441
430
} ) ;
442
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
443
- {
444
- Name = "origin" ,
445
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
446
- } ) ;
431
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
447
432
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
448
433
new GitBranch ( "origin/master" , "[None]" , false ) ,
449
434
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -490,11 +475,7 @@ public async Task ShouldDetectBranchCreate()
490
475
new GitBranch ( "feature2/document2" , "[None]" , false ) ,
491
476
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
492
477
} ) ;
493
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
494
- {
495
- Name = "origin" ,
496
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
497
- } ) ;
478
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
498
479
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
499
480
new GitBranch ( "origin/master" , "[None]" , false ) ,
500
481
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -531,11 +512,7 @@ public async Task ShouldDetectChangesToRemotes()
531
512
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
532
513
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
533
514
} ) ;
534
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
535
- {
536
- Name = "origin" ,
537
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
538
- } ) ;
515
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
539
516
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
540
517
new GitBranch ( "origin/master" , "[None]" , false ) ,
541
518
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -615,11 +592,7 @@ public async Task ShouldDetectChangesToRemotes()
615
592
new GitBranch ( "feature/document" , "[None]" , false ) ,
616
593
new GitBranch ( "feature/other-feature" , "[None]" , false ) ,
617
594
} ) ;
618
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
619
- {
620
- Name = "origin" ,
621
- Url = "https://github.com/EvilShana/IOTestsRepo.git"
622
- } ) ;
595
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilShana/IOTestsRepo.git" ) ) ;
623
596
Repository . RemoteBranches . Should ( ) . BeEmpty ( ) ;
624
597
}
625
598
@@ -652,15 +625,9 @@ public async Task ShouldDetectChangesToRemotesWhenSwitchingBranches()
652
625
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
653
626
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
654
627
} ) ;
655
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
656
- {
657
- Name = "origin" ,
658
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
659
- } , new GitRemote
660
- {
661
- Name = "another" ,
662
- Url = "https://another.remote/Owner/Url.git"
663
- } ) ;
628
+ Repository . Remotes . Should ( ) . BeEquivalentTo (
629
+ new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ,
630
+ new GitRemote ( "another" , "https://another.remote/Owner/Url.git" ) ) ;
664
631
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
665
632
new GitBranch ( "origin/master" , "[None]" , false ) ,
666
633
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -707,15 +674,9 @@ await RepositoryManager.CreateBranch("branch2", "another/master")
707
674
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
708
675
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
709
676
} ) ;
710
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
711
- {
712
- Name = "origin" ,
713
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
714
- } , new GitRemote
715
- {
716
- Name = "another" ,
717
- Url = "https://another.remote/Owner/Url.git"
718
- } ) ;
677
+ Repository . Remotes . Should ( ) . BeEquivalentTo (
678
+ new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ,
679
+ new GitRemote ( "another" , "https://another.remote/Owner/Url.git" ) ) ;
719
680
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
720
681
new GitBranch ( "origin/master" , "[None]" , false ) ,
721
682
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -766,15 +727,9 @@ await RepositoryManager.SwitchBranch("branch2")
766
727
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
767
728
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
768
729
} ) ;
769
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
770
- {
771
- Name = "origin" ,
772
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
773
- } , new GitRemote
774
- {
775
- Name = "another" ,
776
- Url = "https://another.remote/Owner/Url.git"
777
- } ) ;
730
+ Repository . Remotes . Should ( ) . BeEquivalentTo (
731
+ new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ,
732
+ new GitRemote ( "another" , "https://another.remote/Owner/Url.git" ) ) ;
778
733
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
779
734
new GitBranch ( "origin/master" , "[None]" , false ) ,
780
735
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -840,11 +795,7 @@ public async Task ShouldDetectGitPull()
840
795
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
841
796
new GitBranch ( "feature/other-feature" , "origin/feature/other-feature" , false ) ,
842
797
} ) ;
843
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
844
- {
845
- Name = "origin" ,
846
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
847
- } ) ;
798
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
848
799
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
849
800
new GitBranch ( "origin/master" , "[None]" , false ) ,
850
801
new GitBranch ( "origin/feature/document-2" , "[None]" , false ) ,
@@ -882,11 +833,7 @@ public async Task ShouldDetectGitFetch()
882
833
Repository . LocalBranches . Should ( ) . BeEquivalentTo ( new [ ] {
883
834
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
884
835
} ) ;
885
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
886
- {
887
- Name = "origin" ,
888
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
889
- } ) ;
836
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
890
837
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
891
838
new GitBranch ( "origin/master" , "[None]" , false ) ,
892
839
new GitBranch ( "origin/feature/document" , "[None]" , false ) ,
@@ -925,11 +872,7 @@ public async Task ShouldDetectGitFetch()
925
872
Repository . LocalBranches . Should ( ) . BeEquivalentTo ( new [ ] {
926
873
new GitBranch ( "feature/document" , "origin/feature/document" , false ) ,
927
874
} ) ;
928
- Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote
929
- {
930
- Name = "origin" ,
931
- Url = "https://github.com/EvilStanleyGoldman/IOTestsRepo.git"
932
- } ) ;
875
+ Repository . Remotes . Should ( ) . BeEquivalentTo ( new GitRemote ( "origin" , "https://github.com/EvilStanleyGoldman/IOTestsRepo.git" ) ) ;
933
876
Repository . RemoteBranches . Should ( ) . BeEquivalentTo ( new [ ] {
934
877
new GitBranch ( "origin/master" , "[None]" , false ) ,
935
878
new GitBranch ( "origin/feature/document" , "[None]" , false ) ,
0 commit comments