Skip to content

Commit e432ef7

Browse files
committed
auth helper test
1 parent b255617 commit e432ef7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,10 @@ public async Task SignInAsync_ShouldCallGetTokenAsync_WithCaeEnabledAsync()
556556
IAuthContext result = await AuthenticationHelpers.SignInAsync(
557557
authContext, CancellationToken.None, capturingCredential);
558558

559-
// Assert: GetTokenAsync must receive isCaeEnabled: true so that MSAL caches
559+
// Assert: GetTokenAsync must have been called (Scopes will be non-null).
560+
Assert.NotNull(capturedContext.Scopes);
561+
562+
// GetTokenAsync must receive isCaeEnabled: true so that MSAL caches
560563
// a CAE-capable token that can be served silently by
561564
// AzureIdentityAccessTokenProvider during subsequent API calls.
562565
Assert.True(capturedContext.IsCaeEnabled,

0 commit comments

Comments
 (0)