Example #1
0
 public List<FeatureResult> ConvertResult(string result)
 {
     ConvertOutputToObjectModel converter = new ConvertOutputToObjectModel();
     return converter.Convert(result);
 }
 public void Step_result_has_result_attached()
 {
     ConvertOutputToObjectModel model = new ConvertOutputToObjectModel();
     List<FeatureResult> featureResults = model.Convert(result);
     Assert.Equal("undefined", featureResults[0].ScenarioResults[0].StepResults[0].ResultText);
 }
 public void Convert_creates_step_results_objects_in_collection()
 {
     ConvertOutputToObjectModel model = new ConvertOutputToObjectModel();
     List<FeatureResult> featureResults = model.Convert(result);
     Assert.Equal(4, featureResults[0].ScenarioResults[0].StepResults.Count);
 }
 public void Step_result_has_name_of_step_attached()
 {
     ConvertOutputToObjectModel model = new ConvertOutputToObjectModel();
     List<FeatureResult> featureResults = model.Convert(result);
     Assert.Equal(@"there are 240 courses which do not have the topic ""biology""", featureResults[0].ScenarioResults[0].StepResults[0].Name);
 }
 public void Convert_creates_features_objects_in_collection()
 {
     ConvertOutputToObjectModel model = new ConvertOutputToObjectModel();
     List<FeatureResult> featureResults = model.Convert(result);
     Assert.Equal(1, featureResults.Count);
 }