PicklesDoc.Pickles.ObjectModel.Mapper.MapToTableRow C# (CSharp) Method

MapToTableRow() public method

public MapToTableRow ( Gherkin.Ast tableRow ) : TableRow
tableRow Gherkin.Ast
return TableRow
        public TableRow MapToTableRow(G.TableRow tableRow)
        {
            if (tableRow == null)
            {
                return null;
            }

            return new TableRow(tableRow.Cells.Select(this.MapToString));
        }

Usage Example

        public void MapToTableRow_NullTableRow_ReturnsNull()
        {
            var mapper = new Mapper();

            TableRow result = mapper.MapToTableRow(null);

            Check.That(result).IsNull();
        }
All Usage Examples Of PicklesDoc.Pickles.ObjectModel.Mapper::MapToTableRow