vrakeshreddy / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

ThreadRepeated MultipleCulture does not change culture #572

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a testcase decorated with:
[ThreadedRepeat(3, Order = 1)]
[MultipleCulture("sv-SE", "en-US", Order = 2)]

2. According to report it runs 3 repetitions with "sv-SE" then 3 times with
"en-US"
3. But according to CultureInfo.CurrentCulture it's "sv-SE"

What is the expected output? What do you see instead?
I would like CurrentCulture to change accordingly,
like it does if I reverse the Attribute order

What version of the product are you using? On what operating system?
3.1.367

Please provide any additional information below.

Original issue reported on code.google.com by niklas.d...@gmail.com on 26 Oct 2009 at 10:17

GoogleCodeExporter commented 9 years ago
I wonder if this is a problem with how we initialize the threads in 
ThreadedRepeat. 
The threads may not be adopting the culture that was set on the starting thread 
by
the MultipleCulture decorator.

Original comment by jeff.br...@gmail.com on 26 Oct 2009 at 10:37

GoogleCodeExporter commented 9 years ago

Original comment by Yann.Tre...@gmail.com on 29 Oct 2009 at 6:38

GoogleCodeExporter commented 9 years ago
Fixed in r2279.

Original comment by Yann.Tre...@gmail.com on 29 Oct 2009 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by Yann.Tre...@gmail.com on 29 Oct 2009 at 7:54