Skip to content

Commit

Permalink
Add unit test for picklesdoc#85
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman committed Dec 19, 2013
1 parent 47904de commit a4c99b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Pickles/Pickles.Test/WhenParsingNUnitResultsFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,15 @@ public void ThenCanReadNotFoundScenarioCorrectly()
result.WasExecuted.ShouldBeFalse();
result.WasSuccessful.ShouldBeFalse();
}

[Test]
public void ThenCanReadNotFoundFeatureCorrectly()
{
var results = ParseResultsFile();
var feature = new Feature {Name = "NotInTheFile"};
var result = results.GetFeatureResult(feature);
result.WasExecuted.ShouldBeFalse();
result.WasSuccessful.ShouldBeFalse();
}
}
}

0 comments on commit a4c99b4

Please sign in to comment.