private Lines Examples() { var lines = new Lines(); if (scenarioOutline.Examples != null) { foreach (var example in scenarioOutline.Examples) { lines.Add(style.AsStepLine(string.Empty)); lines.Add(style.AsExampleHeading(example.Name)); lines.Add(style.AsStepLine(string.Empty)); var withResults = true; if (scenarioOutline.Result == TestResult.NotProvided) { withResults = false; } var tableBlock = new TableBlock(example.TableArgument, style, withResults); lines.Add(tableBlock.Lines); } } return(lines); }
private Lines AvailableTable() { var lines = new Lines(); if (step.TableArgument != null) { lines.Add(style.AsStepLine(string.Empty)); var tableBlock = new TableBlock(step.TableArgument, style); lines.Add(tableBlock.Lines); } return(lines); }