Exemplo n.º 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);
        }
Exemplo n.º 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)
            });
        }
Exemplo n.º 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()
            });
        }
Exemplo n.º 4
0
 public Example MapToExample(G.Examples examples)
 {
     return(this.mapper.Map <Example>(examples));
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }