Skip to content

Commit

Permalink
Converting Explicit to a category
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm2 committed Feb 21, 2018
1 parent 94c751a commit 0261bf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/NUnitTestAdapter/TraitsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ private static TestTraitInfo ParseNodeTraits(XmlNode testNode)
var traits = new List<Trait>();
var categories = new List<string>();

const string explicitTraitName = "Explicit";
if (!categories.Contains(explicitTraitName) && testNode.Attributes?["runstate"]?.Value == "Explicit")
{
categories.Add(explicitTraitName);
}

foreach (XmlNode propertyNode in nodelist)
{
string propertyName = propertyNode.GetAttribute("name");
Expand Down

0 comments on commit 0261bf6

Please sign in to comment.