@@ -268,7 +268,6 @@ public void PullRequest(string windowTitle, int expectPullRequest)
268268
269269 [ TestCase ( "Consider adding C# code style preferences to editorconfig · Issue #1750 · github/VisualStudio - Google Chrome" , 1750 ) ]
270270 [ TestCase ( "Scrape browser titles · Issue #4 · jcansdale/VisualStudio · GitHub - Mozilla Firefox" , 4 , Description = "Firefox" ) ]
271-
272271 public void Issue ( string windowTitle , int expectIssue )
273272 {
274273 var target = new GitHubContextService ( ) ;
@@ -292,14 +291,16 @@ public void Path(string windowTitle, string expectPath)
292291
293292 [ TestCase ( "jcansdale/VisualStudio: GitHub Extension for Visual Studio - Google Chrome" , "jcansdale" , "VisualStudio" , Description = "Chrome" ) ]
294293 [ TestCase ( "GitHub - jcansdale/VisualStudio: GitHub Extension for Visual Studio - Mozilla Firefox" , "jcansdale" , "VisualStudio" , Description = "Firefox" ) ]
294+ [ TestCase ( "jcansdale/GhostAssemblies - Google Chrome" , "jcansdale" , "GhostAssemblies" , Description = "No description, Chrome" ) ]
295+ [ TestCase ( "GitHub - jcansdale/GhostAssemblies - Mozilla Firefox" , "jcansdale" , "GhostAssemblies" , Description = "No description, Firefox" ) ]
295296 public void RepositoryHome ( string windowTitle , string expectOwner , string expectRepositoryName )
296297 {
297298 var target = new GitHubContextService ( ) ;
298299
299300 var context = target . FindContextFromWindowTitle ( windowTitle ) ;
300301
301- Assert . That ( context . Owner , Is . EqualTo ( expectOwner ) ) ;
302- Assert . That ( context . RepositoryName , Is . EqualTo ( expectRepositoryName ) ) ;
302+ Assert . That ( context ? . Owner , Is . EqualTo ( expectOwner ) ) ;
303+ Assert . That ( context ? . RepositoryName , Is . EqualTo ( expectRepositoryName ) ) ;
303304 }
304305 }
305306}
0 commit comments