Hello everyone,
We have a unit test where we want to check if the right value (either Dutch or English) is returned from the tsf_translate function. We set this value via a default, upon opening the right (help)text is shown to the user, in the right language. We want to unit test this, but how can I fake the Dutch system language in a unit test?
I found a question that provided the following code:
EXEC [sys].[sp_set_session_context] @key = 'tsf_appl_lang_id'
,@value = 'nl-NL'
,@read_only = 0;and that gave the following error:

Is it possible to fake the system language? I can use it for English, as it always falls back to English, but I also want to unit test if it gives the Dutch values.

