Beispiel #1
0
        public IReportRow Compare(PageResponse origin, PageResponse target)
        {
            var disablePosition = IsDisabledOutlinePosition(origin);

            var originNodes = origin.FindNodesByXpath(headers).ToOutlineNodes(exceptEmptyTags: true, disablePosition).ToList();
            var targetNodes = target.FindNodesByXpath(headers).ToOutlineNodes(disablePosition: disablePosition).ToList();

            var badNodes = originNodes.Except(targetNodes);

            return(new HtmlOutlineCompareResult(origin.RequestedUri, originNodes, targetNodes, badNodes, disablePosition));
        }