Two traits with the same name fails


If you have two traits on a test with the same name, ala:

[Trait("Bug", "123")]
[Trait("Bug", "456")]

it only keeps one of them, because the internal implementation of traits is a dictionary.
Closed Sep 6, 2009 at 4:17 AM by
Shipped in xUnit.net 1.5


redoz wrote Aug 11, 2009 at 7:15 PM

It actually throws an exception when the second trait is inserted into the dictionary.

BradWilson wrote Aug 15, 2009 at 10:52 PM

Fixed in change set #40044.

BriceLambson wrote Sep 7, 2013 at 7:39 PM

This has regressed in v2.

BradWilson wrote Sep 9, 2013 at 5:46 PM

New issue for the v2 regression: https://xunit.codeplex.com/workitem/9875