Order is there to resolve ordering conflicts among decorators.
* For each culture, start 5 threads, in each thread run the test, and wait
for all threads to complete before moving on to the next culture. It is not
possible for an en-US test to run concurrently with an fr-FR.
[MultipleCulture("en-US", "fr-FR", Order = 1)]
[ThreadedRepeat(5, Order = 2)]
* Start 5 threads, in each thread run the test in both cultures
sequentially, and wait for all threads to complete. It is possible for an
en-US test to run concurrently with an fr-FR if one thread finishes with the
en-US culture and moves on to fr-FR sooner than another thread.
[ThreadedRepeat(5, Order = 1)]
[MultipleCulture("en-US", "fr-FR", Order = 2)]
Note that the lexical ordering of the attributes (which one I wrote first in
the source code) is not enough because the CLR does not guarantee the order
in which attributes will be enumerated. So we need the Order property to
specify the ordering constraint explicitly.
Jeff.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Molivier
Sent: Thursday, July 09, 2009 2:34 AM
To: MbUnit.User
Subject: MbUnit Re: Where is MultipleCulture attribute is Mbunit v3 ?
Hi !
You are very fast !
So I downloaded version 3.1.217 and MultipleCulture works for me as before
(v2.4). The syntax is better and the presentation in gallio test report is
good.
The only thing i don't understand is the order parameter in MultipleCulture
parameters (but it doesn't bother me :) )
Thanks !
On 8 juil, 10:42, Yann Trevin <[email protected]> wrote:
> Molivier,
>
> I've just ported the MultipleCulturalAttribute to MbUnit v3. It should
> be available starting from v3.1.216. (You can download the daily
> builds at "http://ccnet.gallio.org/Distributables/").
>
> The syntax is slightly the same as in v2, except that I replaced the
> comma-separated string parameter (Eg. [MultipleCulture("en-US,en-
> GB")]) by a variable array parameter (Eg. [MultipleCulture("en-US",
> "en-GB")]) for clarity.
>
> I do not have any use myself for that attribute. So it's difficult for
> me to evaluate whether it meets the expectations of real use cases.
> That's why I would appreciate if you could test it in your own
> projects and provide us some feedback.
>
> Thanks in advance.
> Best regards,
> Yann.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---