public void When_Passing_Alg_To_GetUserInfoSignedResponseAlg_Then_RS256_Is_Returned() { // ARRANGE var client = new Core.Common.Models.Client { UserInfoSignedResponseAlg = Jwt.Constants.JwsAlgNames.RS256 }; // ACT var result = client.GetUserInfoSignedResponseAlg(); // ASSERT Assert.True(result == JwsAlg.RS256); }
public void When_Passing_Not_Supported_Alg_To_GetUserInfoSignedResponseAlg_Then_Null_Is_Returned() { // ARRANGE var client = new Core.Common.Models.Client { UserInfoSignedResponseAlg = "not_supported" }; // ACT var result = client.GetUserInfoSignedResponseAlg(); // ASSERT Assert.Null(result); }