Пример #1
0
        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;
        }
Пример #2
0
 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();
     }
 }
Пример #3
0
 public RowValueMatcher(ITestContext context)
 {
     _context            = context;
     _matchers.OnMissing = key => (o1, o2) => _context.Matches(o1, o2);
 }
Пример #4
0
 public bool MatchesData(IWebElement element, object expected)
 {
     return(_context.Matches(expected, _inner.GetData(null, element)));
 }