Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public async Task MicrosoftAuthentication_GetTokenForUserAsync_NoInteraction_Thr
const string clientId = "C9E8FDA6-1D46-484C-917C-3DBD518F27C3";
Uri redirectUri = new Uri("https://localhost");
string[] scopes = {"user.read"};
const string userName = null; // No user to ensure we do not use an existing token
IMicrosoftAccount account = null; // No account to ensure we do not use an existing token

var context = new TestCommandContext
{
Expand All @@ -26,7 +26,7 @@ public async Task MicrosoftAuthentication_GetTokenForUserAsync_NoInteraction_Thr
var msAuth = new MicrosoftAuthentication(context);

await Assert.ThrowsAsync<Trace2InvalidOperationException>(
() => msAuth.GetTokenForUserAsync(authority, clientId, redirectUri, scopes, userName, false));
() => msAuth.GetTokenForUserAsync(authority, clientId, redirectUri, scopes, account, false));
}

[Theory]
Expand Down
Loading