Пример #1
0
        public GrammarStructure ToStructure(FixtureLibrary library)
        {
            Cell[] cells = InnerGrammar.GetCells()
                           .Where(x => x.IsTestVariable(library.Finder))
                           .Select(c => c.ToInputCell()).ToArray();

            return(new Table(LabelName, LeafName(), cells));
        }
Пример #2
0
        public override IList <Cell> GetCells()
        {
            var keys = DisplayParser.GetKeys(Template);

            return(_inner.GetCells().Where(cell =>
            {
                if (keys.Contains(cell.Key))
                {
                    return true;
                }

                if (_defaults.ContainsKey(cell.Key))
                {
                    return false;
                }

                return !cell.HasDefault();
            }).ToList());
        }
Пример #3
0
 public static Cell FindCell(this IGrammarWithCells grammar, string key)
 {
     return(grammar.GetCells().FirstOrDefault(x => x.Key == key));
 }