Skip to content

Commit c379526

Browse files
Update src/Authentication/Authentication.Test/Helpers/AuthenticationHelpersTests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ed3f948 commit c379526

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

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

560-
// Assert: GetTokenAsync must have been called (Scopes will be non-null).
560+
// Assert: GetTokenAsync must have been called and provided a context.
561+
Assert.NotNull(capturedContext);
561562
Assert.NotNull(capturedContext.Scopes);
562563

563564
// GetTokenAsync must receive isCaeEnabled: true so that MSAL caches

0 commit comments

Comments
 (0)