Exemple #1
0
        public bool Compare(TypedValue actual, Tree <Cell> expected)
        {
            var cell    = (Parse)expected.Value;
            var matcher = new ListMatcher(Processor, new ArrayMatchStrategy(Processor, cell.Parts.Parts));

            return(matcher.IsEqual(actual.GetValue <IEnumerable>().Cast <object>(), cell));
        }
Exemple #2
0
        private void ExecuteCheck(ExecuteContext context, ExecuteParameters parameters)
        {
            var cell    = (Parse)parameters.Cell;
            var matcher = new ListMatcher(Processor, new ArrayMatchStrategy(Processor, cell.Parts.Parts));

            matcher.MarkCell(context.SystemUnderTest.Value, GetActual(context, parameters), cell.Parts.Parts);
        }
Exemple #3
0
        private TypedValue ExecuteEvaluate(ExecuteContext context, ExecuteParameters parameters)
        {
            var cell    = (Parse)parameters.Cell;
            var matcher = new ListMatcher(Processor, new ArrayMatchStrategy(Processor, cell.Parts.Parts));

            return(new TypedValue(matcher.IsEqual(context.Target.Value.Value, cell)));
        }
        public TypedValue Check(CellOperationValue actualValue, Tree <Cell> expectedCell)
        {
            var cell    = (Parse)expectedCell.Value;
            var matcher = new ListMatcher(Processor, new ArrayMatchStrategy(Processor, cell.Parts.Parts));

            matcher.MarkCell(actualValue.GetActual <IEnumerable>(Processor).Cast <object>(), cell.Parts, 0); //todo: encapsulate part in celloperationcontext??
            return(TypedValue.Void);
        }
 protected void CompareRows(Parse theTableRows)
 {
     var matcher = new ListMatcher(Processor, MatchStrategy);
     matcher.MarkCell(myArray, theTableRows);
 }
Exemple #6
0
        public bool Compare(TypedValue actual, Tree <Cell> expected)
        {
            var matcher = new ListMatcher(Processor, new ArrayMatchStrategy(Processor, expected.Branches[0].Branches[0]));

            return(matcher.IsEqual(actual.GetValue <IEnumerable>().Cast <object>(), expected));
        }