public override void HandleCheck(Fixture fixture, Parse cell, Accessor accessor)
        {
            string       expected = cell.Text.Substring("fail[".Length, cell.Text.Length - ("fail[".Length + 1));
            Parse        newCell  = new Parse("td", expected, null, null);
            ICellHandler handler  = CellOperation.GetHandler(fixture, newCell, accessor.ParameterType);

            if (handler.HandleEvaluate(fixture, newCell, accessor))
            {
                fixture.Wrong(cell);
            }
            else
            {
                fixture.Right(cell);
            }
        }
Esempio n. 2
0
        private bool IsMatch(Parse row, DataRow d)
        {
            SetTargetObject(d);
            Parse cell = row.Parts;

            foreach (DataColumnAccessor accessor in accessors)
            {
                ICellHandler cellHandler = CellOperation.GetHandler(this, cell, accessor.ParameterType);
                if (accessor.IsUsedForMatching() &&
                    (!cellHandler.HandleEvaluate(this, cell, accessor)))
                {
                    return(false);
                }
                cell = cell.More;
            }
            return(true);
        }