diff --git a/tests/Microsoft.Identity.Web.Test/AccountExtensionsTests.cs b/tests/Microsoft.Identity.Web.Test/AccountExtensionsTests.cs index ae71c49b2..a557a1464 100644 --- a/tests/Microsoft.Identity.Web.Test/AccountExtensionsTests.cs +++ b/tests/Microsoft.Identity.Web.Test/AccountExtensionsTests.cs @@ -29,7 +29,8 @@ public void ToClaimsPrincipal_ValidAccount_ReturnsClaimsPrincipal() IAccount account = Substitute.For(); account.Username.Returns(username); - account.HomeAccountId.Returns(new AccountId("identifier", oid, tid)); + // AccountId is in the x.y format, MSAL has some DEBUG only checks on that format + account.HomeAccountId.Returns(new AccountId($"{oid}.{tid}", oid, tid)); var claimsIdentityResult = account.ToClaimsPrincipal().Identity as ClaimsIdentity;