File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ namespace GitCredentialManager.Tests.Authentication
12
12
public class BasicAuthenticationTests
13
13
{
14
14
[ Fact ]
15
- public void BasicAuthentication_GetCredentials_NullResource_ThrowsException ( )
15
+ public async Task BasicAuthentication_GetCredentials_NullResource_ThrowsException ( )
16
16
{
17
17
var context = new TestCommandContext ( ) ;
18
18
var basicAuth = new BasicAuthentication ( context ) ;
19
19
20
- Assert . ThrowsAsync < ArgumentNullException > ( ( ) => basicAuth . GetCredentialsAsync ( null ) ) ;
20
+ await Assert . ThrowsAsync < ArgumentNullException > ( ( ) => basicAuth . GetCredentialsAsync ( null ) ) ;
21
21
}
22
22
23
23
[ Fact ]
@@ -58,7 +58,7 @@ public async Task BasicAuthentication_GetCredentials_NonDesktopSession_Resource_
58
58
}
59
59
60
60
[ Fact ]
61
- public void BasicAuthentication_GetCredentials_NonDesktopSession_NoTerminalPrompts_ThrowsException ( )
61
+ public async Task BasicAuthentication_GetCredentials_NonDesktopSession_NoTerminalPrompts_ThrowsException ( )
62
62
{
63
63
const string testResource = "https://example.com" ;
64
64
@@ -70,7 +70,7 @@ public void BasicAuthentication_GetCredentials_NonDesktopSession_NoTerminalPromp
70
70
71
71
var basicAuth = new BasicAuthentication ( context ) ;
72
72
73
- Assert . ThrowsAsync < InvalidOperationException > ( ( ) => basicAuth . GetCredentialsAsync ( testResource ) ) ;
73
+ await Assert . ThrowsAsync < InvalidOperationException > ( ( ) => basicAuth . GetCredentialsAsync ( testResource ) ) ;
74
74
}
75
75
76
76
[ Fact ]
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ public void HostProviderRegistry_Register_AutoAuthorityId_ThrowException()
35
35
}
36
36
37
37
[ Fact ]
38
- public void HostProviderRegistry_GetProvider_NoProviders_ThrowException ( )
38
+ public async Task HostProviderRegistry_GetProvider_NoProviders_ThrowException ( )
39
39
{
40
40
var context = new TestCommandContext ( ) ;
41
41
var registry = new HostProviderRegistry ( context ) ;
42
42
var input = new InputArguments ( new Dictionary < string , string > ( ) ) ;
43
43
44
- Assert . ThrowsAsync < Exception > ( ( ) => registry . GetProviderAsync ( input ) ) ;
44
+ await Assert . ThrowsAsync < Exception > ( ( ) => registry . GetProviderAsync ( input ) ) ;
45
45
}
46
46
47
47
[ Fact ]
You can’t perform that action at this time.
0 commit comments