File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Octokit.GraphQL.IntegrationTests/Queries Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ public async Task Should_Throw_Correct_Error_For_Name_Resolution_Failure()
41
41
[ IntegrationTest ]
42
42
public async Task Should_Throw_Correct_Error_For_Invalid_Repository_Name ( )
43
43
{
44
+ var owner = "octokit" ;
45
+ var name = "bad_repository" ;
44
46
var query = new Query ( )
45
- . Repository ( owner : "octokit" , name : "bad_repository" )
47
+ . Repository ( owner : owner , name : name )
46
48
. Issues ( first : 3 )
47
49
. Nodes
48
50
. Select ( i => new
@@ -52,7 +54,7 @@ public async Task Should_Throw_Correct_Error_For_Invalid_Repository_Name()
52
54
} ) ;
53
55
54
56
var ex = await Assert . ThrowsAnyAsync < ResponseDeserializerException > ( async ( ) => await Connection . Run ( query ) ) ;
55
- Assert . Equal ( "Could not resolve to a Repository with the name 'bad_repository '." , ex . Message ) ;
57
+ Assert . Equal ( $ "Could not resolve to a Repository with the name '{ owner } / { name } '.", ex . Message ) ;
56
58
Assert . Equal ( 1 , ex . Line ) ;
57
59
Assert . Equal ( 7 , ex . Column ) ;
58
60
}
You can’t perform that action at this time.
0 commit comments