Skip to content

Commit

Permalink
Use ordinal case insensitive string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Rombauts committed May 21, 2014
1 parent c6933b5 commit 41feacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pickles/Pickles/TestFrameworks/NUnitSingleResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public TestResult GetExampleResult(ScenarioOutline scenarioOutline, string[] exa
examplesElement = featureElement
.Descendants("test-suite")
.Where(x => x.Attribute("description") != null)
.FirstOrDefault(x => x.Attribute("description").Value == scenarioOutline.Name)
.FirstOrDefault(x => x.Attribute("description").Value.Equals(scenarioOutline.Name, StringComparison.OrdinalIgnoreCase))
.Descendants("test-case")
.Where(x => x.Attribute("name") != null)
.FirstOrDefault(x => exampleSignature.IsMatch(x.Attribute("name").Value.ToLowerInvariant().Replace(@"\", "")));
Expand Down

0 comments on commit 41feacc

Please sign in to comment.