public bool Matches(ITestContext context, SetRow other) { if (MissingValues) return false; foreach (var key in Values.Keys) { if (!other.Values.Has(key)) return false; if (!context.Matches(Values[key], other.Values[key])) return false; } return true; }
private void checkExpectedAgainstActual(object expected, object actual, ITestContext context, IStep step) { if (context.Matches(expected, actual)) { context.IncrementRights(); } else { context.ResultsFor(step).MarkFailure(_key); context.IncrementWrongs(); } }
public RowValueMatcher(ITestContext context) { _context = context; _matchers.OnMissing = key => (o1, o2) => _context.Matches(o1, o2); }
public bool MatchesData(IWebElement element, object expected) { return(_context.Matches(expected, _inner.GetData(null, element))); }