Beispiel #1
0
        internal G.Examples CreateExamples(string name, string description, string[] headerCells, IEnumerable <string[]> exampleRows, string[] tags = null)
        {
            var examples = new G.Examples(
                tags?.Select(this.CreateTag).ToArray(),
                AnyLocation,
                "Examples",
                name,
                description,
                this.CreateGherkinTableRow(headerCells),
                exampleRows.Select(this.CreateGherkinTableRow).ToArray());

            return(examples);
        }
Beispiel #2
0
        public Example MapToExample(G.Examples examples)
        {
            if (examples == null)
            {
                return(null);
            }

            return(new Example
            {
                Description = examples.Description,
                Name = examples.Name,
                TableArgument = this.MapToTable(((G.IHasRows)examples).Rows)
            });
        }
Beispiel #3
0
        public Example MapToExample(G.Examples examples)
        {
            if (examples == null)
            {
                return(null);
            }

            return(new Example
            {
                Description = examples.Description,
                Name = examples.Name,
                TableArgument = this.MapToTable(((G.IHasRows)examples).Rows),
                Tags = examples.Tags?.Select(this.MapToString).ToList()
            });
        }
Beispiel #4
0
 public Example MapToExample(G.Examples examples)
 {
     return(this.mapper.Map <Example>(examples));
 }
Beispiel #5
0
        internal G.Examples CreateExamples(string name, string description, string[] headerCells, IEnumerable<string[]> exampleRows)
        {
            var examples = new G.Examples(
                null,
                AnyLocation,
                "Examples",
                name,
                description,
                this.CreateGherkinTableRow(headerCells),
                exampleRows.Select(this.CreateGherkinTableRow).ToArray());

            return examples;
        }
Beispiel #6
0
 public ScenarioOutline(Tag[] tags, Location location, string keyword, string name, string description, Step[] steps, Examples[] examples)
     : base(location, keyword, name, description, steps)
 {
     Tags = tags;
     Examples = examples;
 }