File tree 1 file changed +0
-26
lines changed
GitHubExtension.Test/Controls
1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -48,30 +48,4 @@ await Assert.ThrowsExceptionAsync<InvalidOperationException>(async () =>
48
48
await Task . Run ( ( ) => developerIdProvider . HandleOauthRedirection ( authorizationResponse ) ) ;
49
49
} ) ;
50
50
}
51
-
52
- [ TestMethod ]
53
- public async Task LoginNewDeveloperIdAsync_ShouldThrowInvalidOperationException_OnTimeout ( )
54
- {
55
- // Arrange
56
- var mockGitHubClient = new Mock < IGitHubClient > ( ) ;
57
- var mockOauthClient = new Mock < IOauthClient > ( ) ;
58
-
59
- mockGitHubClient . Setup ( client => client . Oauth ) . Returns ( mockOauthClient . Object ) ;
60
-
61
- mockOauthClient
62
- . Setup ( oauth => oauth . CreateAccessToken ( It . IsAny < OauthTokenRequest > ( ) ) )
63
- . Returns ( async ( ) =>
64
- {
65
- await Task . Delay ( TimeSpan . FromSeconds ( 10 ) ) ; // Simulate delay longer than timeout
66
- return new OauthToken ( ) ;
67
- } ) ;
68
-
69
- var developerIdProvider = new DeveloperIdProvider ( ) ;
70
-
71
- // Act & Assert
72
- await Assert . ThrowsExceptionAsync < InvalidOperationException > ( async ( ) =>
73
- {
74
- await developerIdProvider . LoginNewDeveloperIdAsync ( ) ;
75
- } ) ;
76
- }
77
51
}
You can’t perform that action at this time.
0 commit comments