Skip to content

Commit

Permalink
Switch test to not use raw string literal
Browse files Browse the repository at this point in the history
This keeps the test usable on our 6.3 branch, which targets .NET 6
which doesn't support C# 11/raw string literals
  • Loading branch information
josephdecock committed Aug 31, 2023
1 parent fbc82dd commit 5314d8f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/IdentityServer.UnitTests/Extensions/TokenExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,19 @@ public void TestClaimValueTypes(string type, string value, string valueType, str
public void refresh_token_should_get_mtls_x5t_thumprint()
{
var expected = "some hash normally goes here";

var cnf = new Dictionary<string, string>
{
{ "x5t#S256", expected }
};

var refreshToken = new RefreshToken()
{
AccessTokens = new Dictionary<string, Token>
{
{ "token", new Token()
{
Confirmation = $$"""
{
"x5t#S256": "{{expected}}"
}
"""
Confirmation = JsonSerializer.Serialize(cnf)
}
}
}
Expand Down

0 comments on commit 5314d8f

Please sign in to comment.