Hi everyone,
my unit tests are failing in Edit Mode Test Runner because my tests can’t get the strings from the database of the LocalizationSettings. Is there a way or solution to mock the LocalizationSettings or wait for the Initialization Task?
The tests fail when calling this method:
public static async Task GetText(TableReference table, TableEntryReference key, params object[ ] arguments)
{
return await LocalizationSettings.StringDatabase.GetLocalizedStringAsync(table, key, arguments).Task;
}
Kind regards,
Phuc