File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Authentication/Authentication.Test/Helpers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments