public async Task When_Pass_Invalid_Token_To_UserInfo_Then_Error_Is_Returned() { var getUserInfoResult = await _userInfoClient.GetUserInfo("invalid_access_token").ConfigureAwait(false) as Option <JwtPayload> .Error; Assert.Equal("invalid_token", getUserInfoResult.Details.Title); Assert.Equal(Strings.TheTokenIsNotValid, getUserInfoResult.Details.Detail); }