I have a unit-test that relies on a specific culture.
In FixtureSetup, I set both Thread.CurrentThread.CurrentCulture
and Thread.CurrentThread.CurrentUICulture
to the desired value (en-US).
When I run the test from Resharper, it passes.
When I run the test from TeamCity (using the runner "NUnit 2.4.6"), the test fails, because
CurrentCulture
is cs-CZ
(the culture of my OS). However CurrentUICulture
is still en-US
.