private TestResult GetResultFromFeature(Feature cucumberFeature) { if (cucumberFeature == null || cucumberFeature.elements == null) return TestResult.Inconclusive; bool wasSuccessful = cucumberFeature.elements.All(CheckScenarioStatus); return wasSuccessful ? TestResult.Passed : TestResult.Failed; }
private TestResult GetResultFromFeature(Feature cucumberFeature) { if (cucumberFeature == null || cucumberFeature.elements == null) { return(TestResult.Inconclusive); } bool wasSuccessful = cucumberFeature.elements.All(CheckScenarioStatus); return(wasSuccessful ? TestResult.Passed : TestResult.Failed); }