Skip to content

Commit

Permalink
Add special character tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Jan 9, 2024
1 parent bc417e4 commit a74878a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ConfigCat.Client.Tests/BasicConfigCatClientIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,19 @@ public void Ensure_Multiple_Requests_Doesnt_Interfere_In_ValueTasks()
manualPollClient.ForceRefresh();
});
}

[DataTestMethod]
[DataRow("specialCharacters", "äöüÄÖÜçéèñışğ⢙✓😀", "äöüÄÖÜçéèñışğ⢙✓😀")]
[DataRow("specialCharactersHashed", "äöüÄÖÜçéèñışğ⢙✓😀", "äöüÄÖÜçéèñışğ⢙✓😀")]
public async Task SpecialCharacters_Works(string settingKey, string userId, string expectedValue)
{
// https://app.configcat.com/v2/e7a75611-4256-49a5-9320-ce158755e3ba/08d5a03c-feb7-af1e-a1fa-40b3329f8bed/08dc016a-675e-4aa2-8492-6f572ad98037/244cf8b0-f604-11e8-b543-f23c917f9d8d
using var client = ConfigCatClient.Get("configcat-sdk-1/PKDVCLf-Hq-h-kCzMp-L7Q/u28_1qNyZ0Wz-ldYHIU7-g", options =>
{
options.PollingMode = PollingModes.LazyLoad();
});

var actual = await client.GetValueAsync(settingKey, "NOT_CAT", new User(userId));
Assert.AreEqual(expectedValue, actual);
}
}

0 comments on commit a74878a

Please sign in to comment.