@@ -35,16 +35,19 @@ public async Task GitHubPage_Is_Initialized()
3535 target . EnterpriseTab . DidNotReceiveWithAnyArgs ( ) . Initialize ( null ) ;
3636 }
3737
38- [ TestCase ( "https://github.com" , false , 0 ) ]
39- [ TestCase ( "https://enterprise.com" , false , 1 ) ]
40- [ TestCase ( "https://github.com" , true , 2 , Description = "Show URL tab for GitHub connections" ) ]
41- [ TestCase ( "https://enterprise.com" , true , 2 , Description = "Show URL tab for Enterprise connections" ) ]
42- public async Task Default_SelectedTabIndex_For_Group ( string address , bool isGroupA , int expectTabIndex )
38+ [ TestCase ( "https://github.com" , null , false , 0 ) ]
39+ [ TestCase ( "https://enterprise.com" , null , false , 1 ) ]
40+ [ TestCase ( "https://github.com" , null , true , 2 , Description = "Show URL tab for GitHub connections" ) ]
41+ [ TestCase ( "https://enterprise.com" , null , true , 2 , Description = "Show URL tab for Enterprise connections" ) ]
42+ [ TestCase ( "https://github.com" , "https://github.com/github/visualstudio" , false , 2 ) ]
43+ [ TestCase ( "https://enterprise.com" , "https://enterprise.com/owner/repo" , false , 2 ) ]
44+ public async Task Default_SelectedTabIndex_For_Group ( string address , string clipboardUrl , bool isGroupA , int expectTabIndex )
4345 {
4446 var cm = CreateConnectionManager ( address ) ;
4547 var connection = cm . Connections [ 0 ] ;
4648 var usageService = CreateUsageService ( isGroupA ) ;
4749 var target = CreateTarget ( connectionManager : cm , usageService : usageService ) ;
50+ target . UrlTab . Url = clipboardUrl ;
4851
4952 await target . InitializeAsync ( connection ) ;
5053
0 commit comments